Class: Twilio::REST::Numbers::V1::PortingPortInPhoneNumberListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PortingPortInPhoneNumberListResponse.

Parameters:



189
190
191
192
193
194
195
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb', line 189

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

Instance Method Details

#headersObject



282
283
284
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb', line 282

def headers
  @headers
end

#porting_port_in_phone_numberObject



278
279
280
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb', line 278

def porting_port_in_phone_number
    @porting_port_in_phone_number
end

#porting_port_in_phone_number_instanceObject



197
198
199
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb', line 197

def porting_port_in_phone_number_instance
    @instance
end

#status_codeObject



286
287
288
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb', line 286

def status_code
  @status_code
end