Sha256: 07a28ebfd7dfc4db29808877ca70255ca6f6b8a21c1ef4e7058667ece07ac0ad

Contents?: true

Size: 266 Bytes

Versions: 5

Compression:

Stored size: 266 Bytes

Contents

module LightspeedRestaurant
  module Operations
    module Update
      def update(id, attributes)
        updated_object = new(attributes)
        LightspeedRestaurant.put(resource_path + "/#{id}", updated_object)
        updated_object
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
lightspeed_restaurant-0.3.0 lib/lightspeed_restaurant/operations/update.rb
lightspeed_restaurant-0.2.0 lib/lightspeed_restaurant/operations/update.rb
lightspeed_restaurant-0.1.5 lib/lightspeed_restaurant/operations/update.rb
lightspeed_restaurant-0.1.4 lib/lightspeed_restaurant/operations/update.rb
lightspeed_restaurant-0.1.3 lib/lightspeed_restaurant/operations/update.rb