Class: VoiceML::ConversationsV1ParticipantConversationsResource
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ParticipantConversationsResource
- Defined in:
- lib/voiceml/resources/conversations_v1.rb
Overview
============================================================================
/v1/ParticipantConversations (read-only list)
Instance Method Summary collapse
-
#initialize(transport) ⇒ ConversationsV1ParticipantConversationsResource
constructor
A new instance of ConversationsV1ParticipantConversationsResource.
- #list(identity: nil, address: nil, page_size: nil) ⇒ Object
Constructor Details
#initialize(transport) ⇒ ConversationsV1ParticipantConversationsResource
Returns a new instance of ConversationsV1ParticipantConversationsResource.
561 562 563 |
# File 'lib/voiceml/resources/conversations_v1.rb', line 561 def initialize(transport) @transport = transport end |
Instance Method Details
#list(identity: nil, address: nil, page_size: nil) ⇒ Object
565 566 567 568 569 570 571 572 573 |
# File 'lib/voiceml/resources/conversations_v1.rb', line 565 def list(identity: nil, address: nil, page_size: nil) params = {} params['Identity'] = identity unless identity.nil? params['Address'] = address unless address.nil? params['PageSize'] = page_size unless page_size.nil? ConversationsV1ParticipantConversationList.new( @transport.request(:get, '/v1/ParticipantConversations', params: params) ) end |