Pārlūkot izejas kodu

Adds customer helper to CustomerGroup resource
Fixes #39

David Underwood 12 gadi atpakaļ
vecāks
revīzija
7500d9489e
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  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