Class: Twilio::REST::Trunking::V1::TrunkContext::CredentialListInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, credential_list_instance, headers, status_code) ⇒ CredentialListInstanceMetadata

Initializes a new CredentialListInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}CredentialListInstance]

    credential_list_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



332
333
334
335
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 332

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

Instance Method Details

#credential_listObject



337
338
339
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 337

def credential_list
    @credential_list_instance
end

#headersObject



341
342
343
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 341

def headers
    @headers
end

#status_codeObject



345
346
347
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 345

def status_code
    @status_code
end

#to_sObject



349
350
351
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 349

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