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:



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

#headersObject



288
289
290
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 288

def headers
  @headers
end

#porting_all_port_inObject



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_codeObject



292
293
294
# File 'lib/twilio-ruby/rest/numbers/v1/porting_all_port_in.rb', line 292

def status_code
  @status_code
end