Class: VoiceML::AssistantsV1SessionList

Inherits:
Object
  • Object
show all
Includes:
V1Pageable
Defined in:
lib/voiceml/models/assistants_v1.rb

Constant Summary

Constants included from V1Pageable

V1Pageable::META_FIELDS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from V1Pageable

#assign_meta_fields

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 = {})
  assign_meta_fields(hash)
  @sessions = (hash['sessions'] || []).map { |h| AssistantsV1Session.from_hash(h) }
end

Instance Attribute Details

#sessionsObject (readonly)

Returns the value of attribute sessions.



155
156
157
# File 'lib/voiceml/models/assistants_v1.rb', line 155

def sessions
  @sessions
end