Class: Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentContext::DependentHostedNumberOrderListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Preview::HostedNumbers::AuthorizationDocumentContext::DependentHostedNumberOrderListResponse
- Defined in:
- lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb
Instance Method Summary collapse
- #dependent_hosted_number_order ⇒ Object
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ DependentHostedNumberOrderListResponse
constructor
A new instance of DependentHostedNumberOrderListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ DependentHostedNumberOrderListResponse
Returns a new instance of DependentHostedNumberOrderListResponse.
266 267 268 269 270 271 272 273 274 275 276 |
# File 'lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb', line 266 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] || [] if limit != :unset data_list = data_list[0, limit] end @dependent_hosted_number_order = data_list.map do |data| DependentHostedNumberOrderInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#dependent_hosted_number_order ⇒ Object
278 279 280 |
# File 'lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb', line 278 def dependent_hosted_number_order @dependent_hosted_number_order end |
#headers ⇒ Object
282 283 284 |
# File 'lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb', line 282 def headers @headers end |
#status_code ⇒ Object
286 287 288 |
# File 'lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document/dependent_hosted_number_order.rb', line 286 def status_code @status_code end |