Class: VoiceML::AssistantsV1AssistantList
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1AssistantList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/assistants_v1.rb
Constant Summary
Constants included from V1Pageable
Instance Attribute Summary collapse
-
#assistants ⇒ Object
readonly
Returns the value of attribute assistants.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ AssistantsV1AssistantList
constructor
A new instance of AssistantsV1AssistantList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ AssistantsV1AssistantList
Returns a new instance of AssistantsV1AssistantList.
35 36 37 38 |
# File 'lib/voiceml/models/assistants_v1.rb', line 35 def initialize(hash = {}) (hash) @assistants = (hash['assistants'] || []).map { |h| AssistantsV1Assistant.from_hash(h) } end |
Instance Attribute Details
#assistants ⇒ Object (readonly)
Returns the value of attribute assistants.
34 35 36 |
# File 'lib/voiceml/models/assistants_v1.rb', line 34 def assistants @assistants end |