ソースを参照

exposes customer#orders

Neil Costford 11 年 前
コミット
48d4f54f21
1 ファイル変更2 行追加0 行削除
  1. 2 0
      lib/shopify_api/resources/customer.rb

+ 2 - 0
lib/shopify_api/resources/customer.rb

@@ -2,6 +2,8 @@ module ShopifyAPI
   class Customer < Base
     include Metafields
 
+    def orders(options = {}); load_attributes_from_response(get(:orders, options)); end
+    
     class DefaultAddress < Base
     end
   end