Method: Orchestrate::Client#put_event
- Defined in:
- lib/orchestrate/client.rb
permalink #put_event(collection, key, event_type, timestamp, ordinal, body, ref = nil) ⇒ Object
[View source]
306 307 308 309 310 311 312 |
# File 'lib/orchestrate/client.rb', line 306 def put_event(collection, key, event_type, , ordinal, body, ref=nil) = API::Helpers.() path = [collection, key, 'events', event_type, , ordinal] headers = {} headers['If-Match'] = API::Helpers.format_ref(ref) if ref send_request :put, path, { body: body, headers: headers, response: API::ItemResponse } end |