Class: VoiceML::AssistantsV1SessionList
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1SessionList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/assistants_v1.rb
Constant Summary
Constants included from V1Pageable
Instance Attribute Summary collapse
-
#sessions ⇒ Object
readonly
Returns the value of attribute sessions.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ AssistantsV1SessionList
constructor
A new instance of AssistantsV1SessionList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ AssistantsV1SessionList
Returns a new instance of AssistantsV1SessionList.
156 157 158 159 |
# File 'lib/voiceml/models/assistants_v1.rb', line 156 def initialize(hash = {}) (hash) @sessions = (hash['sessions'] || []).map { |h| AssistantsV1Session.from_hash(h) } end |
Instance Attribute Details
#sessions ⇒ Object (readonly)
Returns the value of attribute sessions.
155 156 157 |
# File 'lib/voiceml/models/assistants_v1.rb', line 155 def sessions @sessions end |