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.
360 361 362 363 364 365 366 |
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 360 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
453 454 455 |
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 453 def headers @headers end |
#key ⇒ Object
449 450 451 |
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 449 def key @key end |
#key_instance ⇒ Object
368 369 370 |
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 368 def key_instance @instance end |
#status_code ⇒ Object
457 458 459 |
# File 'lib/twilio-ruby/rest/api/v2010/account/key.rb', line 457 def status_code @status_code end |