Class: Twilio::REST::Numbers::V1::PortingAllPortInListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ PortingAllPortInListResponse

Returns a new instance of PortingAllPortInListResponse.

Parameters:



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

#headersObject



280
281
282
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 280

def headers
  @headers
end

#porting_all_port_inObject



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_codeObject



284
285
286
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 284

def status_code
  @status_code
end