Class: Twilio::REST::Conversations::V1::CredentialInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/conversations/v1/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.



463
464
465
466
# File 'lib/twilio-ruby/rest/conversations/v1/credential.rb', line 463

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

Instance Method Details

#credentialObject



468
469
470
# File 'lib/twilio-ruby/rest/conversations/v1/credential.rb', line 468

def credential
    @credential_instance
end

#headersObject



472
473
474
# File 'lib/twilio-ruby/rest/conversations/v1/credential.rb', line 472

def headers
    @headers
end

#status_codeObject



476
477
478
# File 'lib/twilio-ruby/rest/conversations/v1/credential.rb', line 476

def status_code
    @status_code
end

#to_sObject



480
481
482
# File 'lib/twilio-ruby/rest/conversations/v1/credential.rb', line 480

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