Class: VoiceML::ConversationsV1ServiceConversationMessageList
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ServiceConversationMessageList
- 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 = {}) ⇒ ConversationsV1ServiceConversationMessageList
constructor
A new instance of ConversationsV1ServiceConversationMessageList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ ConversationsV1ServiceConversationMessageList
Returns a new instance of ConversationsV1ServiceConversationMessageList.
368 369 370 371 |
# File 'lib/voiceml/models/conversations_v1.rb', line 368 def initialize(hash = {}) (hash) @messages = (hash['messages'] || []).map { |h| ConversationsV1ServiceConversationMessage.from_hash(h) } end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
367 368 369 |
# File 'lib/voiceml/models/conversations_v1.rb', line 367 def @messages end |