Module: Layer::Operations::Patch
- Included in:
- Conversation, Identity
- Defined in:
- lib/layer/operations/patch.rb
Instance Method Summary collapse
-
#attributes=(attributes) ⇒ Layer::Patch::Hash
Updates the resource’s attributes to the given ones.
-
#save ⇒ Boolean
Creates the resource with the given attributes.
Instance Method Details
#attributes=(attributes) ⇒ Layer::Patch::Hash
Updates the resource’s attributes to the given ones
19 20 21 |
# File 'lib/layer/operations/patch.rb', line 19 def attributes=(attributes) @attributes = Layer::Patch::Hash.new(patch, attributes) end |
#save ⇒ Boolean
Creates the resource with the given attributes
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 |