Class: Twilio::REST::Chat::V1::CredentialListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Chat::V1::CredentialListResponse
- Defined in:
- lib/twilio-ruby/rest/chat/v1/credential.rb,
lib/twilio-ruby/rest/chat/v1/credential.rb
Instance Method Summary collapse
- #credential ⇒ Object
- #credential_instance ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ CredentialListResponse
constructor
A new instance of CredentialListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ CredentialListResponse
Returns a new instance of CredentialListResponse.
475 476 477 478 479 480 481 |
# File 'lib/twilio-ruby/rest/chat/v1/credential.rb', line 475 def initialize(version, payload, key) @credential_instance = payload.body[key].map do |data| CredentialInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#credential ⇒ Object
564 565 566 |
# File 'lib/twilio-ruby/rest/chat/v1/credential.rb', line 564 def credential @credential end |
#credential_instance ⇒ Object
483 484 485 |
# File 'lib/twilio-ruby/rest/chat/v1/credential.rb', line 483 def credential_instance @instance end |
#headers ⇒ Object
568 569 570 |
# File 'lib/twilio-ruby/rest/chat/v1/credential.rb', line 568 def headers @headers end |
#status_code ⇒ Object
572 573 574 |
# File 'lib/twilio-ruby/rest/chat/v1/credential.rb', line 572 def status_code @status_code end |