Sha256: a1a86efde795e7905e864edbd996f686bb65e51e8addcd20b57a243244e71381

Contents?: true

Size: 278 Bytes

Versions: 3

Compression:

Stored size: 278 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lightspeed_restaurant-1.1.2 lib/lightspeed_restaurant/operations/update.rb
lightspeed_restaurant-1.1.0 lib/lightspeed_restaurant/operations/update.rb
lightspeed_restaurant-1.0.0 lib/lightspeed_restaurant/operations/update.rb