Sha256: d9946c14b28491f01ee56a02f152373579aa80668364d9a53974911c269a5ad8

Contents?: true

Size: 245 Bytes

Versions: 4

Compression:

Stored size: 245 Bytes

Contents

module LightspeedRestaurant
  module Operations
    module Create
      def create(attributes)
        response = LightspeedRestaurant.post(resource_path, attributes)
        new(attributes.merge!(id: response.to_i))
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
lightspeed_restaurant-0.1.3 lib/lightspeed_restaurant/operations/create.rb
lightspeed_restaurant-0.1.2 lib/lightspeed_restaurant/operations/create.rb
lightspeed_restaurant-0.1.1 lib/lightspeed_restaurant/operations/create.rb
lightspeed_restaurant-0.1.0 lib/lightspeed_restaurant/operations/create.rb