Method: Orchestrate::Client#post

Defined in:
lib/orchestrate/client.rb

#post(collection, body) ⇒ Object

Parameters:

  • collection (#to_s)

    The name of the collection.

  • body (#to_json)

    The value to store.

Returns:

  • Orchestrate::API::ItemResponse

[View source]

129
130
131
# File 'lib/orchestrate/client.rb', line 129

def post(collection, body)
  send_request :post, [collection], { body: body, response: API::ItemResponse }
end