Class: VoiceML::AssistantsV1KnowledgeStatusScope

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

Overview

/v1/Knowledge/id/Status — read-only ingestion status snapshot.

Instance Method Summary collapse

Constructor Details

#initialize(transport, knowledge_id) ⇒ AssistantsV1KnowledgeStatusScope

Returns a new instance of AssistantsV1KnowledgeStatusScope.



416
417
418
419
# File 'lib/voiceml/resources/assistants_v1.rb', line 416

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

Instance Method Details

#fetchObject



421
422
423
424
425
# File 'lib/voiceml/resources/assistants_v1.rb', line 421

def fetch
  AssistantsV1KnowledgeStatus.from_hash(
    @transport.request(:get, "/v1/Knowledge/#{@knowledge_id}/Status")
  )
end