Class: Twilio::REST::Numbers::V2::HostedNumberOrderListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb,
lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of HostedNumberOrderListResponse.

Parameters:



559
560
561
562
563
564
565
# File 'lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb', line 559

def initialize(version, payload, key)
   @hosted_number_order_instance = payload.body[key].map do |data|
    HostedNumberOrderInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#headersObject



652
653
654
# File 'lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb', line 652

def headers
  @headers
end

#hosted_number_orderObject



648
649
650
# File 'lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb', line 648

def hosted_number_order
    @hosted_number_order
end

#hosted_number_order_instanceObject



567
568
569
# File 'lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb', line 567

def hosted_number_order_instance
    @instance
end

#status_codeObject



656
657
658
# File 'lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb', line 656

def status_code
  @status_code
end