Class: Twilio::REST::Trunking::V1::TrunkContext::CredentialListListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Trunking::V1::TrunkContext::CredentialListListResponse
- 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
- #credential_list ⇒ Object
- #credential_list_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ CredentialListListResponse
constructor
A new instance of CredentialListListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ CredentialListListResponse
Returns a new instance of CredentialListListResponse.
366 367 368 369 370 371 372 |
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 366 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_list ⇒ Object
455 456 457 |
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 455 def credential_list @credential_list end |
#credential_list_instance ⇒ Object
374 375 376 |
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 374 def credential_list_instance @instance end |
#headers ⇒ Object
459 460 461 |
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 459 def headers @headers end |
#status_code ⇒ Object
463 464 465 |
# File 'lib/twilio-ruby/rest/trunking/v1/trunk/credential_list.rb', line 463 def status_code @status_code end |