Class: Twilio::REST::Routes::V2::PhoneNumberListResponse

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PhoneNumberListResponse.

Parameters:



218
219
220
221
222
223
224
# File 'lib/twilio-ruby/rest/routes/v2/phone_number.rb', line 218

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



311
312
313
# File 'lib/twilio-ruby/rest/routes/v2/phone_number.rb', line 311

def headers
  @headers
end

#phone_numberObject



307
308
309
# File 'lib/twilio-ruby/rest/routes/v2/phone_number.rb', line 307

def phone_number
    @phone_number
end

#phone_number_instanceObject



226
227
228
# File 'lib/twilio-ruby/rest/routes/v2/phone_number.rb', line 226

def phone_number_instance
    @instance
end

#status_codeObject



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

def status_code
  @status_code
end