Przeglądaj źródła

Adds customer helper to CustomerGroup resource
Fixes #39

David Underwood 12 lat temu
rodzic
commit
7500d9489e
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      lib/shopify_api/resources/customer_group.rb

+ 5 - 0
lib/shopify_api/resources/customer_group.rb

@@ -1,4 +1,9 @@
 module ShopifyAPI
   class CustomerGroup < Base
+
+    def customers
+      Customers.find(:all, :params => {:customer_group_id => self.id})
+    end
+    
   end
 end