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 that contains the resource

  • credential_instance The instance associated with the metadata.

  • Header object with response headers.

  • The HTTP status code of the response.



455
456
457
458
# File 'lib/twilio-ruby/rest/conversations/v1/credential.rb', line 455

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

Instance Method Details

#credentialObject



460
461
462
# File 'lib/twilio-ruby/rest/conversations/v1/credential.rb', line 460

def credential
    @credential_instance
end

#headersObject



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

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

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