Module: LightspeedRestaurantClient::Operations::Update

Included in:
Customer
Defined in:
lib/lightspeed_restaurant/operations/update.rb

Instance Method Summary collapse

Instance Method Details

#update(id, attributes, configuration = nil) ⇒ Object



6
7
8
9
10
# File 'lib/lightspeed_restaurant/operations/update.rb', line 6

def update(id, attributes, configuration = nil)
  updated_object = new(attributes)
  LightspeedRestaurantClient.put(default_resource_path + "/#{id}", updated_object, {}, configuration)
  updated_object
end