Class: Twilio::REST::Api::V2010::AccountContext::SipList::CredentialListListResponse

Inherits:
InstanceListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb,
lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of CredentialListListResponse.

Parameters:



439
440
441
442
443
444
445
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb', line 439

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



528
529
530
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb', line 528

def credential_list
    @credential_list
end

#credential_list_instanceObject



447
448
449
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb', line 447

def credential_list_instance
    @instance
end

#headersObject



532
533
534
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb', line 532

def headers
  @headers
end

#status_codeObject



536
537
538
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb', line 536

def status_code
  @status_code
end