Class: VoiceML::ConversationsV1ConversationParticipantList
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ConversationParticipantList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Constant Summary
Constants included from V1Pageable
Instance Attribute Summary collapse
-
#participants ⇒ Object
readonly
Returns the value of attribute participants.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ ConversationsV1ConversationParticipantList
constructor
A new instance of ConversationsV1ConversationParticipantList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ ConversationsV1ConversationParticipantList
Returns a new instance of ConversationsV1ConversationParticipantList.
78 79 80 81 |
# File 'lib/voiceml/models/conversations_v1.rb', line 78 def initialize(hash = {}) (hash) @participants = (hash['participants'] || []).map { |h| ConversationsV1ConversationParticipant.from_hash(h) } end |
Instance Attribute Details
#participants ⇒ Object (readonly)
Returns the value of attribute participants.
77 78 79 |
# File 'lib/voiceml/models/conversations_v1.rb', line 77 def participants @participants end |