Class: Twilio::REST::Proxy::V1::ServiceContext::PhoneNumberListResponse

Inherits:
InstanceListResource show all
Defined in:
lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb,
lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of PhoneNumberListResponse.

Parameters:



438
439
440
441
442
443
444
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 438

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



531
532
533
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 531

def headers
  @headers
end

#phone_numberObject



527
528
529
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 527

def phone_number
    @phone_number
end

#phone_number_instanceObject



446
447
448
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 446

def phone_number_instance
    @instance
end

#status_codeObject



535
536
537
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 535

def status_code
  @status_code
end