Class: Twilio::REST::IpMessaging::V1::CredentialInstanceMetadata

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



449
450
451
452
# File 'lib/twilio-ruby/rest/ip_messaging/v1/credential.rb', line 449

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

Instance Method Details

#credentialObject



454
455
456
# File 'lib/twilio-ruby/rest/ip_messaging/v1/credential.rb', line 454

def credential
    @credential_instance
end

#headersObject



458
459
460
# File 'lib/twilio-ruby/rest/ip_messaging/v1/credential.rb', line 458

def headers
    @headers
end

#status_codeObject



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

def status_code
    @status_code
end

#to_sObject



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

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