Class: Twilio::REST::Conversations::V1::CredentialListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Conversations::V1::CredentialListResponse
- Defined in:
- lib/twilio-ruby/rest/conversations/v1/credential.rb,
lib/twilio-ruby/rest/conversations/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.
489 490 491 492 493 494 495 |
# File 'lib/twilio-ruby/rest/conversations/v1/credential.rb', line 489 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
578 579 580 |
# File 'lib/twilio-ruby/rest/conversations/v1/credential.rb', line 578 def credential @credential end |
#credential_instance ⇒ Object
497 498 499 |
# File 'lib/twilio-ruby/rest/conversations/v1/credential.rb', line 497 def credential_instance @instance end |
#headers ⇒ Object
582 583 584 |
# File 'lib/twilio-ruby/rest/conversations/v1/credential.rb', line 582 def headers @headers end |
#status_code ⇒ Object
586 587 588 |
# File 'lib/twilio-ruby/rest/conversations/v1/credential.rb', line 586 def status_code @status_code end |