Class: Twilio::REST::Voice::V2::Configuration::DefaultListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Voice::V2::Configuration::DefaultListResponse
- Defined in:
- lib/twilio-ruby/rest/voice/v2/configuration/default.rb
Instance Method Summary collapse
- #default ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ DefaultListResponse
constructor
A new instance of DefaultListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ DefaultListResponse
Returns a new instance of DefaultListResponse.
215 216 217 218 219 220 221 222 223 224 225 |
# File 'lib/twilio-ruby/rest/voice/v2/configuration/default.rb', line 215 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] || [] if limit != :unset data_list = data_list[0, limit] end @default = data_list.map do |data| DefaultInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#default ⇒ Object
227 228 229 |
# File 'lib/twilio-ruby/rest/voice/v2/configuration/default.rb', line 227 def default @default end |
#headers ⇒ Object
231 232 233 |
# File 'lib/twilio-ruby/rest/voice/v2/configuration/default.rb', line 231 def headers @headers end |
#status_code ⇒ Object
235 236 237 |
# File 'lib/twilio-ruby/rest/voice/v2/configuration/default.rb', line 235 def status_code @status_code end |