Class: Twilio::REST::Accounts::V1::CredentialList::PublicKeyListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Accounts::V1::CredentialList::PublicKeyListResponse
- Defined in:
- lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb,
lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ PublicKeyListResponse
constructor
A new instance of PublicKeyListResponse.
- #public_key ⇒ Object
- #public_key_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ PublicKeyListResponse
Returns a new instance of PublicKeyListResponse.
431 432 433 434 435 436 437 |
# File 'lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb', line 431 def initialize(version, payload, key) @public_key_instance = payload.body[key].map do |data| PublicKeyInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
524 525 526 |
# File 'lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb', line 524 def headers @headers end |
#public_key ⇒ Object
520 521 522 |
# File 'lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb', line 520 def public_key @public_key end |
#public_key_instance ⇒ Object
439 440 441 |
# File 'lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb', line 439 def public_key_instance @instance end |
#status_code ⇒ Object
528 529 530 |
# File 'lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb', line 528 def status_code @status_code end |