Class: VoiceML::AssistantsV1KnowledgeChunkList
- Inherits:
-
Object
- Object
- VoiceML::AssistantsV1KnowledgeChunkList
- Includes:
- V1Pageable
- Defined in:
- lib/voiceml/models/assistants_v1.rb
Constant Summary
Constants included from V1Pageable
Instance Attribute Summary collapse
-
#chunks ⇒ Object
readonly
Returns the value of attribute chunks.
Instance Method Summary collapse
-
#initialize(hash = {}) ⇒ AssistantsV1KnowledgeChunkList
constructor
A new instance of AssistantsV1KnowledgeChunkList.
Methods included from V1Pageable
Constructor Details
#initialize(hash = {}) ⇒ AssistantsV1KnowledgeChunkList
Returns a new instance of AssistantsV1KnowledgeChunkList.
135 136 137 138 |
# File 'lib/voiceml/models/assistants_v1.rb', line 135 def initialize(hash = {}) (hash) @chunks = (hash['chunks'] || []).map { |h| AssistantsV1KnowledgeChunk.from_hash(h) } end |
Instance Attribute Details
#chunks ⇒ Object (readonly)
Returns the value of attribute chunks.
134 135 136 |
# File 'lib/voiceml/models/assistants_v1.rb', line 134 def chunks @chunks end |