Class: Twilio::REST::Knowledge::V2::KnowledgeBasisInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, knowledge_basis_instance, headers, status_code) ⇒ KnowledgeBasisInstanceMetadata

Initializes a new KnowledgeBasisInstanceMetadata.

Parameters:

  • version (Version) —

    Version that contains the resource

  • [}KnowledgeBasisInstance] —

    knowledge_basis_instance The instance associated with the metadata.

  • headers (Hash) —

    Header object with response headers.

  • status_code (Integer) —

    The HTTP status code of the response.



462
463
464
465
# File 'lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb', line 462

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

Instance Method Details

#headers ⇒ Object



471
472
473
# File 'lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb', line 471

def headers
    @headers
end

#knowledge_basis ⇒ Object



467
468
469
# File 'lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb', line 467

def knowledge_basis
    @knowledge_basis_instance
end

#status_code ⇒ Object



475
476
477
# File 'lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb', line 475

def status_code
    @status_code
end

#to_s ⇒ Object



479
480
481
# File 'lib/twilio-ruby/rest/knowledge/v2/knowledge_basis.rb', line 479

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