Module: Ribose::Actions::Update::ClassMethods

Defined in:
lib/ribose/actions/update.rb

Instance Method Summary collapse

Instance Method Details

#update(resource_id, attributes = {}) ⇒ Sawyer::Resource

Update a resource

Parameters:

  • resource_id (String)

    The Resource UUID

  • attributes (Hash) (defaults to: {})

    New attributes as Hash

Returns:

  • (Sawyer::Resource)

    The Updated Resource



30
31
32
# File 'lib/ribose/actions/update.rb', line 30

def update(resource_id, attributes = {})
  new(attributes.merge(resource_id: resource_id)).update
end