Class: Twilio::REST::Numbers::V1::PortingPortInListResponse

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

Instance Method Summary collapse

Constructor Details

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



320
321
322
323
324
325
326
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 320

def initialize(version, payload, key)
   @porting_port_in_instance = payload.body[key].map do |data|
    PortingPortInInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#headersObject



413
414
415
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 413

def headers
  @headers
end

#porting_port_inObject



409
410
411
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 409

def porting_port_in
    @porting_port_in
end

#porting_port_in_instanceObject



328
329
330
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 328

def porting_port_in_instance
    @instance
end

#status_codeObject



417
418
419
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 417

def status_code
  @status_code
end