Sha256: 19b69acc96ad9d0371e389a71c55fd175c9e55b1dbc2d2c71c969223b964ed07

Contents?: true

Size: 234 Bytes

Versions: 3

Compression:

Stored size: 234 Bytes

Contents

module LightspeedRestaurant
  module Operations
    module Update
      def update
        LightspeedRestaurant.put(self.class.resource_path + "/#{id}", self)
        self
      end
      alias_method :save, :update
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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