Sha256: 5f3593275412ae1adbce7834c2625fbee167f06b0b02b39a04f7197045e9e5b3
Contents?: true
Size: 359 Bytes
Versions: 2
Compression:
Stored size: 359 Bytes
Contents
module LightspeedRestaurant module Operations module Create def create(attributes) response = LightspeedRestaurant.post(resource_path, attributes) if is_a?(Class) new(attributes.merge!(id: response.to_i)) else self.class.new(attributes.merge!(id: response.to_i)) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lightspeed_restaurant-0.1.5 | lib/lightspeed_restaurant/operations/create.rb |
lightspeed_restaurant-0.1.4 | lib/lightspeed_restaurant/operations/create.rb |