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:



551
552
553
554
555
556
557
# File 'lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb', line 551

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



644
645
646
# File 'lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb', line 644

def headers
  @headers
end

#hosted_number_orderObject



640
641
642
# File 'lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb', line 640

def hosted_number_order
    @hosted_number_order
end

#hosted_number_order_instanceObject



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

def hosted_number_order_instance
    @instance
end

#status_codeObject



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

def status_code
  @status_code
end