Module: LightspeedRestaurantClient::Operations::List
- Included in:
- Company, Customer, CustomerCreditChange, CustomerLoyaltyCard, PaymentType, ProductGroup, Receipt
- Defined in:
- lib/lightspeed_restaurant/operations/list.rb
Instance Method Summary collapse
- #list(params = {}, configuration = nil) ⇒ Object (also: #all)
Instance Method Details
#list(params = {}, configuration = nil) ⇒ Object Also known as: all
6 7 8 9 10 |
# File 'lib/lightspeed_restaurant/operations/list.rb', line 6 def list(params = {}, configuration = nil) response = JSON.parse(LightspeedRestaurantClient.get(resource_path, params, configuration)) results = response.is_a?(Array) ? response : response['results'] instantiate(results) end |