Class: Vonage::Conversation::Event
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Conversation::Event
- Defined in:
- lib/vonage/conversation/event.rb
Defined Under Namespace
Classes: ListResponse
Instance Method Summary collapse
-
#create(conversation_id:, **params) ⇒ Response
Create an event.
-
#delete(conversation_id:, event_id:) ⇒ Response
Delete an event.
-
#find(conversation_id:, event_id:) ⇒ Response
Get details of a specific event.
-
#list(conversation_id:, **params) ⇒ Conversation::Member::ListResponse
List conversation events.
Instance Method Details
#create(conversation_id:, **params) ⇒ Response
Create an event
70 71 72 |
# File 'lib/vonage/conversation/event.rb', line 70 def create(conversation_id:, **params) request("/v1/conversations/#{conversation_id}/events", params: params, type: Post) end |
#delete(conversation_id:, event_id:) ⇒ Response
Delete an event.
104 105 106 |
# File 'lib/vonage/conversation/event.rb', line 104 def delete(conversation_id:, event_id:) request("/v1/conversations/#{conversation_id}/events/#{event_id}", type: Delete) end |
#find(conversation_id:, event_id:) ⇒ Response
Get details of a specific event
87 88 89 |
# File 'lib/vonage/conversation/event.rb', line 87 def find(conversation_id:, event_id:) request("/v1/conversations/#{conversation_id}/events/#{event_id}") end |
#list(conversation_id:, **params) ⇒ Conversation::Member::ListResponse
List conversation events
39 40 41 |
# File 'lib/vonage/conversation/event.rb', line 39 def list(conversation_id:, **params) request("/v1/conversations/#{conversation_id}/events", params: params, response_class: ListResponse) end |