Class: VoiceML::AssistantsV1KnowledgeList
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1KnowledgeList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/assistants_v1.rb
Constant Summary
Constants included from V1Pageable
Instance Attribute Summary collapse
-
#knowledge ⇒ Object
readonly
Returns the value of attribute knowledge.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ AssistantsV1KnowledgeList
constructor
A new instance of AssistantsV1KnowledgeList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ AssistantsV1KnowledgeList
Returns a new instance of AssistantsV1KnowledgeList.
106 107 108 109 |
# File 'lib/voiceml/models/assistants_v1.rb', line 106 def initialize(hash = {}) (hash) @knowledge = (hash['knowledge'] || []).map { |h| AssistantsV1Knowledge.from_hash(h) } end |
Instance Attribute Details
#knowledge ⇒ Object (readonly)
Returns the value of attribute knowledge.
105 106 107 |
# File 'lib/voiceml/models/assistants_v1.rb', line 105 def knowledge @knowledge end |