Class: Twilio::REST::Trunking::V1::TrunkContext::CredentialListListResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ CredentialListListResponse

Returns a new instance of CredentialListListResponse.

Parameters:



358
359
360
361
362
363
364
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 358

def initialize(version, payload, key)
   @credential_list_instance = payload.body[key].map do |data|
    CredentialListInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#credential_listObject



447
448
449
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 447

def credential_list
    @credential_list
end

#credential_list_instanceObject



366
367
368
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 366

def credential_list_instance
    @instance
end

#headersObject



451
452
453
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 451

def headers
  @headers
end

#status_codeObject



455
456
457
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 455

def status_code
  @status_code
end