Browse Source

exposes customer#orders

Neil Costford 11 years ago
parent
commit
48d4f54f21
1 changed files with 2 additions and 0 deletions
  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