Class: Vonage::Conversation::Member
- Inherits:
-
Namespace
- Object
- Namespace
- Vonage::Conversation::Member
- Defined in:
- lib/vonage/conversation/member.rb
Defined Under Namespace
Classes: ListResponse
Instance Method Summary collapse
-
#create(conversation_id:, **params) ⇒ Response
Create a member.
-
#find(conversation_id:, member_id:) ⇒ Response
Retrieve a member.
-
#list(conversation_id:, **params) ⇒ Conversation::Member::ListResponse
List members of a conversation.
-
#update(conversation_id:, member_id:, **params) ⇒ Response
Update a member.
Instance Method Details
#create(conversation_id:, **params) ⇒ Response
Create a member.
81 82 83 |
# File 'lib/vonage/conversation/member.rb', line 81 def create(conversation_id:, **params) request("/v1/conversations/#{conversation_id}/members", params: params, type: Post) end |
#find(conversation_id:, member_id:) ⇒ Response
Retrieve a member
101 102 103 |
# File 'lib/vonage/conversation/member.rb', line 101 def find(conversation_id:, member_id:) request("/v1/conversations/#{conversation_id}/members/#{member_id}", response_class: Vonage::Response) end |
#list(conversation_id:, **params) ⇒ Conversation::Member::ListResponse
List members of a conversation
30 31 32 |
# File 'lib/vonage/conversation/member.rb', line 30 def list(conversation_id:, **params) request("/v1/conversations/#{conversation_id}/members", params: params, response_class: ListResponse) end |
#update(conversation_id:, member_id:, **params) ⇒ Response
Update a member
130 131 132 |
# File 'lib/vonage/conversation/member.rb', line 130 def update(conversation_id:, member_id:, **params) request("/v1/conversations/#{conversation_id}/members/#{member_id}", params: params, type: Patch) end |