Class: Restonomic::CustomerGroup
- Inherits:
-
Object
- Object
- Restonomic::CustomerGroup
- Defined in:
- lib/restonomic/customer_group.rb
Instance Method Summary collapse
-
#initialize(api) ⇒ CustomerGroup
constructor
A new instance of CustomerGroup.
- #read_collection(skippages = 0, pagesize = 1000) ⇒ Object
Constructor Details
#initialize(api) ⇒ CustomerGroup
Returns a new instance of CustomerGroup.
3 4 5 |
# File 'lib/restonomic/customer_group.rb', line 3 def initialize(api) @api = api end |
Instance Method Details
#read_collection(skippages = 0, pagesize = 1000) ⇒ Object
7 8 9 10 |
# File 'lib/restonomic/customer_group.rb', line 7 def read_collection(skippages=0, pagesize=1000) response = @api.call "/customer-groups?skippages=#{skippages}&pagesize=#{pagesize}" response['collection'] end |