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.
264 265 266 267 268 269 270 271 272 273 274 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 264 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
280 281 282 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 280 def headers @headers end |
#porting_all_port_in ⇒ Object
276 277 278 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 276 def porting_all_port_in @porting_all_port_in end |
#status_code ⇒ Object
284 285 286 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 284 def status_code @status_code end |