Method: Layer::Operations::Patch#save

Defined in:
lib/layer/operations/patch.rb

#saveBoolean

Creates the resource with the given attributes

Returns:

  • (Boolean)

    whether saving was successful

Raises:



9
10
11
12
13
# File 'lib/layer/operations/patch.rb', line 9

def save
  client.patch(url, patch.operations.dup)
  patch.reset
  true
end