Class: VoiceML::AssistantsV1KnowledgeScope

Inherits:
Object
  • Object
show all
Defined in:
lib/voiceml/resources/assistants_v1.rb

Overview

============================================================================ Per-Knowledge scope — sub-resources under /v1/Knowledge/id/...:

- .status   fetch ingestion status snapshot
- .chunks   list indexed chunks

============================================================================

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(transport, knowledge_id) ⇒ AssistantsV1KnowledgeScope

Returns a new instance of AssistantsV1KnowledgeScope.



400
401
402
403
# File 'lib/voiceml/resources/assistants_v1.rb', line 400

def initialize(transport, knowledge_id)
  @transport    = transport
  @knowledge_id = knowledge_id
end

Instance Attribute Details

#knowledge_idObject (readonly)

Returns the value of attribute knowledge_id.



398
399
400
# File 'lib/voiceml/resources/assistants_v1.rb', line 398

def knowledge_id
  @knowledge_id
end

Instance Method Details

#chunksObject



409
410
411
# File 'lib/voiceml/resources/assistants_v1.rb', line 409

def chunks
  @chunks ||= AssistantsV1KnowledgeChunksScope.new(@transport, @knowledge_id)
end

#statusObject



405
406
407
# File 'lib/voiceml/resources/assistants_v1.rb', line 405

def status
  @status ||= AssistantsV1KnowledgeStatusScope.new(@transport, @knowledge_id)
end