Class: Vonage::Conversation
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Conversation
- Extended by:
- T::Sig
- Defined in:
- lib/vonage/conversation.rb
Defined Under Namespace
Classes: Event, ListResponse, Member, User
Instance Method Summary collapse
-
#create(**params) ⇒ Response
Create a conversation.
-
#delete(conversation_id:) ⇒ Response
Delete a conversation.
- #event ⇒ Object
-
#find(conversation_id:) ⇒ Response
Retrieve a conversation.
-
#list(**params) ⇒ Conversation::ListResponse
List conversations associated with a Vonage application.
- #member ⇒ Object
-
#update(conversation_id:, **params) ⇒ Response
Update a conversation.
- #user ⇒ Object
Instance Method Details
#create(**params) ⇒ Response
Create a conversation.
74 75 76 |
# File 'lib/vonage/conversation.rb', line 74 def create(**params) request('/v1/conversations', params: params, type: Post) end |
#delete(conversation_id:) ⇒ Response
Delete a conversation.
142 143 144 |
# File 'lib/vonage/conversation.rb', line 142 def delete(conversation_id:) request("/v1/conversations/#{conversation_id}", type: Delete) end |
#event ⇒ Object
160 161 162 |
# File 'lib/vonage/conversation.rb', line 160 def event @event ||= Event.new(@config) end |
#find(conversation_id:) ⇒ Response
Retrieve a conversation.
89 90 91 |
# File 'lib/vonage/conversation.rb', line 89 def find(conversation_id:) request("/v1/conversations/#{conversation_id}") end |
#list(**params) ⇒ Conversation::ListResponse
List conversations associated with a Vonage application.
36 37 38 |
# File 'lib/vonage/conversation.rb', line 36 def list(**params) request('/v1/conversations', params: params, response_class: ListResponse) end |
#member ⇒ Object
154 155 156 |
# File 'lib/vonage/conversation.rb', line 154 def member @member ||= Member.new(@config) end |
#update(conversation_id:, **params) ⇒ Response
Update a conversation.
127 128 129 |
# File 'lib/vonage/conversation.rb', line 127 def update(conversation_id:, **params) request("/v1/conversations/#{conversation_id}", params: params, type: Put) end |
#user ⇒ Object
148 149 150 |
# File 'lib/vonage/conversation.rb', line 148 def user @user ||= User.new(@config) end |