Class: Twilio::REST::Numbers::V2::HostedNumberOrderListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Numbers::V2::HostedNumberOrderListResponse
- 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
- #headers ⇒ Object
- #hosted_number_order ⇒ Object
- #hosted_number_order_instance ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ HostedNumberOrderListResponse
constructor
A new instance of HostedNumberOrderListResponse.
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ HostedNumberOrderListResponse
Returns a new instance of HostedNumberOrderListResponse.
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
#headers ⇒ Object
652 653 654 |
# File 'lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb', line 652 def headers @headers end |
#hosted_number_order ⇒ Object
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_instance ⇒ Object
567 568 569 |
# File 'lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb', line 567 def hosted_number_order_instance @instance end |
#status_code ⇒ Object
656 657 658 |
# File 'lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb', line 656 def status_code @status_code end |