Class: Twilio::REST::Proxy::V1::ServiceContext::PhoneNumberInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, phone_number_instance, headers, status_code) ⇒ PhoneNumberInstanceMetadata

Initializes a new PhoneNumberInstanceMetadata.



404
405
406
407
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 404

def initialize(version, phone_number_instance, headers, status_code)
    super(version, headers, status_code)
    @phone_number_instance = phone_number_instance
end

Instance Method Details

#headersObject



413
414
415
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 413

def headers
    @headers
end

#phone_numberObject



409
410
411
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 409

def phone_number
    @phone_number_instance
end

#status_codeObject



417
418
419
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 417

def status_code
    @status_code
end

#to_sObject



421
422
423
# File 'lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb', line 421

def to_s
  "<Twilio.Api.V2010.PhoneNumberInstanceMetadata status=#{@status_code}>"
end