Method: Orchestrate::KeyValue#set

Defined in:
lib/orchestrate/key_value.rb

#set(merge) ⇒ true, false

Merges a set of values into the item's existing value and saves.

Parameters:

  • merge (#each_pair)

    The Hash-like to merge into #value. Keys will be stringified.

Returns:

  • (true, false)


211
212
213
214
215
216
217
# File 'lib/orchestrate/key_value.rb', line 211

def set(merge)
  begin
    set!(merge)
  rescue API::RequestError, API::ServiceError
    false
  end
end