Class: Twilio::REST::Assistants::V1::KnowledgeInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/assistants/v1/knowledge.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, knowledge_instance, headers, status_code) ⇒ KnowledgeInstanceMetadata

Initializes a new KnowledgeInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}KnowledgeInstance]

    knowledge_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



564
565
566
567
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 564

def initialize(version, knowledge_instance, headers, status_code)
    super(version, headers, status_code)
    @knowledge_instance = knowledge_instance
end

Instance Method Details

#headersObject



573
574
575
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 573

def headers
    @headers
end

#knowledgeObject



569
570
571
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 569

def knowledge
    @knowledge_instance
end

#status_codeObject



577
578
579
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 577

def status_code
    @status_code
end

#to_sObject



581
582
583
# File 'lib/twilio-ruby/rest/assistants/v1/knowledge.rb', line 581

def to_s
  "<Twilio.Api.V2010.KnowledgeInstanceMetadata status=#{@status_code}>"
end