Class: Twilio::REST::Numbers::V3::HostedNumberOrderListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Numbers::V3::HostedNumberOrderListResponse
- Defined in:
- lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb
Instance Method Summary collapse
- #headers ⇒ Object
- #hosted_number_order ⇒ 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
259 260 261 262 263 264 265 266 267 268 269 |
# File 'lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb', line 259 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] if limit != :unset data_list = data_list[0, limit] end @hosted_number_order = data_list.map do |data| HostedNumberOrderInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
275 276 277 |
# File 'lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb', line 275 def headers @headers end |
#hosted_number_order ⇒ Object
271 272 273 |
# File 'lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb', line 271 def hosted_number_order @hosted_number_order end |
#status_code ⇒ Object
279 280 281 |
# File 'lib/twilio-ruby/rest/numbers/v3/hosted_number_order.rb', line 279 def status_code @status_code end |