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.
423 424 425 426 427 428 429 |
# File 'lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb', line 423 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
516 517 518 |
# File 'lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb', line 516 def headers @headers end |
#public_key ⇒ Object
512 513 514 |
# File 'lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb', line 512 def public_key @public_key end |
#public_key_instance ⇒ Object
431 432 433 |
# File 'lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb', line 431 def public_key_instance @instance end |
#status_code ⇒ Object
520 521 522 |
# File 'lib/twilio-ruby/rest/accounts/v1/credential/public_key.rb', line 520 def status_code @status_code end |