Class: Twilio::REST::Numbers::V1::PortingAllPortInListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Numbers::V1::PortingAllPortInListResponse
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ PortingAllPortInListResponse
constructor
A new instance of PortingAllPortInListResponse.
- #porting_all_port_in ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ PortingAllPortInListResponse
Returns a new instance of PortingAllPortInListResponse.
272 273 274 275 276 277 278 279 280 281 282 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 272 def initialize(version, payload, key, limit = :unset) data_list = payload.body[key] || [] if limit != :unset data_list = data_list[0, limit] end @porting_all_port_in = data_list.map do |data| PortingAllPortInInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
288 289 290 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 288 def headers @headers end |
#porting_all_port_in ⇒ Object
284 285 286 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 284 def porting_all_port_in @porting_all_port_in end |
#status_code ⇒ Object
292 293 294 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 292 def status_code @status_code end |