Class: Twilio::REST::Routes::V3::PhoneNumberListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PhoneNumberListResponse.

Parameters:



226
227
228
229
230
231
232
# File 'lib/twilio-ruby/rest/routes/v3/phone_number.rb', line 226

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



320
321
322
# File 'lib/twilio-ruby/rest/routes/v3/phone_number.rb', line 320

def headers
  @headers
end

#phone_numberObject



316
317
318
# File 'lib/twilio-ruby/rest/routes/v3/phone_number.rb', line 316

def phone_number
    @phone_number
end

#phone_number_instanceObject



234
235
236
# File 'lib/twilio-ruby/rest/routes/v3/phone_number.rb', line 234

def phone_number_instance
    @instance
end

#status_codeObject



324
325
326
# File 'lib/twilio-ruby/rest/routes/v3/phone_number.rb', line 324

def status_code
  @status_code
end