Class: Twilio::REST::Lookups::V2::PhoneNumberListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/lookups/v2/phone_number.rb,
lib/twilio-ruby/rest/lookups/v2/phone_number.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PhoneNumberListResponse.

Parameters:



250
251
252
253
254
255
256
# File 'lib/twilio-ruby/rest/lookups/v2/phone_number.rb', line 250

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

Instance Method Details

#headersObject



343
344
345
# File 'lib/twilio-ruby/rest/lookups/v2/phone_number.rb', line 343

def headers
  @headers
end

#phone_numberObject



339
340
341
# File 'lib/twilio-ruby/rest/lookups/v2/phone_number.rb', line 339

def phone_number
    @phone_number
end

#phone_number_instanceObject



258
259
260
# File 'lib/twilio-ruby/rest/lookups/v2/phone_number.rb', line 258

def phone_number_instance
    @instance
end

#status_codeObject



347
348
349
# File 'lib/twilio-ruby/rest/lookups/v2/phone_number.rb', line 347

def status_code
  @status_code
end