Method: Orchestrate::KeyValue#merge

Defined in:
lib/orchestrate/key_value.rb

#merge(value, ref = nil) ⇒ Object

Merges the given value into a KeyValue item using a patch request, enabling merges to be peformed without retrieving the KeyValue item. and merged into the KeyValue item.

Parameters:

  • value (#to_json)

    Hash of partial values, to be converted to json,

  • ref (String) (defaults to: nil)

    optional condition, provide ref for 'If-Match' header



236
237
238
# File 'lib/orchestrate/key_value.rb', line 236

def merge(value, ref=nil)
  self.perform(:patch_merge, value, ref)
end