Class: Twilio::REST::Api::V2010::AccountContext::KeyListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::KeyListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/key.rb,
lib/twilio-ruby/rest/api/v2010/account/key.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ KeyListResponse
constructor
A new instance of KeyListResponse.
- #key ⇒ Object
- #key_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ KeyListResponse
Returns a new instance of KeyListResponse.
368 369 370 371 372 373 374 |
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 368 def initialize(version, payload, key) @key_instance = payload.body[key].map do |data| KeyInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
461 462 463 |
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 461 def headers @headers end |
#key ⇒ Object
457 458 459 |
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 457 def key @key end |
#key_instance ⇒ Object
376 377 378 |
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 376 def key_instance @instance end |
#status_code ⇒ Object
465 466 467 |
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 465 def status_code @status_code end |