Module: LightspeedRestaurantClient::Operations::Create
- Included in:
- Customer, CustomerCreditChange, CustomerEstablishmentOrder, CustomerLoyaltyCard, PaymentType, ProductGroupProduct
- Defined in:
- lib/lightspeed_restaurant/operations/create.rb
Instance Method Summary collapse
Instance Method Details
#create(attributes, configuration = nil) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/lightspeed_restaurant/operations/create.rb', line 6 def create(attributes, configuration = nil) response = LightspeedRestaurantClient.post(default_resource_path, attributes, {}, configuration) payload = build_payload(attributes, response) return new(payload) if is_a?(Class) self.class.new(payload) end |