Class: Twilio::REST::Numbers::V2::AuthorizationDocumentContext::DependentHostedNumberOrderListResponse

Inherits:
InstanceListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ DependentHostedNumberOrderListResponse

Returns a new instance of DependentHostedNumberOrderListResponse.

Parameters:



250
251
252
253
254
255
256
257
258
259
260
# File 'lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb', line 250

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_orderObject



262
263
264
# File 'lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb', line 262

def dependent_hosted_number_order
    @dependent_hosted_number_order
end

#headersObject



266
267
268
# File 'lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb', line 266

def headers
  @headers
end

#status_codeObject



270
271
272
# File 'lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb', line 270

def status_code
  @status_code
end