Class: Twilio::REST::Assistants::V1::AssistantContext::AssistantsKnowledgeInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, assistants_knowledge_instance, headers, status_code) ⇒ AssistantsKnowledgeInstanceMetadata

Initializes a new AssistantsKnowledgeInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}AssistantsKnowledgeInstance]

    assistants_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.



274
275
276
277
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 274

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

Instance Method Details

#assistants_knowledgeObject



279
280
281
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 279

def assistants_knowledge
    @assistants_knowledge_instance
end

#headersObject



283
284
285
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 283

def headers
    @headers
end

#status_codeObject



287
288
289
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 287

def status_code
    @status_code
end

#to_sObject



291
292
293
# File 'lib/twilio-ruby/rest/assistants/v1/assistant/assistants_knowledge.rb', line 291

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