Class: Twilio::REST::Api::V2010::AccountContext::NewKeyListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Api::V2010::AccountContext::NewKeyListResponse
- Defined in:
- lib/twilio-ruby/rest/api/v2010/account/new_key.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ NewKeyListResponse
constructor
A new instance of NewKeyListResponse.
- #new_key ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ NewKeyListResponse
Returns a new instance of NewKeyListResponse.
167 168 169 170 171 172 173 174 175 176 177 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_key.rb', line 167 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @new_key = data_list.map do |data| NewKeyInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
183 184 185 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_key.rb', line 183 def headers @headers end |
#new_key ⇒ Object
179 180 181 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_key.rb', line 179 def new_key @new_key end |
#status_code ⇒ Object
187 188 189 |
# File 'lib/twilio-ruby/rest/api/v2010/account/new_key.rb', line 187 def status_code @status_code end |