Class: VoiceML::AssistantsV1MessageList
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1MessageList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/assistants_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 = {}) ⇒ AssistantsV1MessageList
constructor
A new instance of AssistantsV1MessageList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ AssistantsV1MessageList
Returns a new instance of AssistantsV1MessageList.
178 179 180 181 |
# File 'lib/voiceml/models/assistants_v1.rb', line 178 def initialize(hash = {}) (hash) @messages = (hash['messages'] || []).map { |h| AssistantsV1Message.from_hash(h) } end |
Instance Attribute Details
#messages ⇒ Object (readonly)
Returns the value of attribute messages.
177 178 179 |
# File 'lib/voiceml/models/assistants_v1.rb', line 177 def @messages end |