Class: VoiceML::ConversationsV1ConversationMessageList
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ConversationMessageList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Constant Summary
Constants included from V1Pageable
Instance Attribute Summary collapse
-
#messages ⇒ Object
readonly
Returns the value of attribute messages.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ ConversationsV1ConversationMessageList
constructor
A new instance of ConversationsV1ConversationMessageList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ ConversationsV1ConversationMessageList
Returns a new instance of ConversationsV1ConversationMessageList.
56 57 58 59 |
# File 'lib/voiceml/models/conversations_v1.rb', line 56 def initialize(hash = {}) (hash) @messages = (hash['messages'] || []).map { |h| ConversationsV1ConversationMessage.from_hash(h) } end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
55 56 57 |
# File 'lib/voiceml/models/conversations_v1.rb', line 55 def @messages end |