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:



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

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



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

def credential_list
    @credential_list
end

#credential_list_instanceObject



455
456
457
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb', line 455

def credential_list_instance
    @instance
end

#headersObject



540
541
542
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb', line 540

def headers
  @headers
end

#status_codeObject



544
545
546
# File 'lib/twilio-ruby/rest/api/v2010/account/sip/credential_list.rb', line 544

def status_code
  @status_code
end