Class: Twilio::REST::Chat::V2::CredentialInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, credential_instance, headers, status_code) ⇒ CredentialInstanceMetadata

Initializes a new CredentialInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}CredentialInstance]

    credential_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



457
458
459
460
# File 'lib/twilio-ruby/rest/chat/v2/credential.rb', line 457

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

Instance Method Details

#credentialObject



462
463
464
# File 'lib/twilio-ruby/rest/chat/v2/credential.rb', line 462

def credential
    @credential_instance
end

#headersObject



466
467
468
# File 'lib/twilio-ruby/rest/chat/v2/credential.rb', line 466

def headers
    @headers
end

#status_codeObject



470
471
472
# File 'lib/twilio-ruby/rest/chat/v2/credential.rb', line 470

def status_code
    @status_code
end

#to_sObject



474
475
476
# File 'lib/twilio-ruby/rest/chat/v2/credential.rb', line 474

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