Sha256: e1bcfd5d3ce090c4f2e8e7b6e2a4f2771b2456bc436a4c6e146ddcffd41e2958

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 Bytes

Contents

# frozen_string_literal: true

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

1 entries across 1 versions & 1 rubygems

Version Path
lightspeed_restaurant-2.0.0 lib/lightspeed_restaurant/operations/update.rb