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:



430
431
432
433
434
435
436
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 430

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



523
524
525
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 523

def headers
  @headers
end

#phone_numberObject



519
520
521
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 519

def phone_number
    @phone_number
end

#phone_number_instanceObject



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

def phone_number_instance
    @instance
end

#status_codeObject



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

def status_code
  @status_code
end