Class: Twilio::REST::Lookups::V2::PhoneNumberInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/lookups/v2/phone_number.rb

Instance Method Summary collapse

Constructor Details

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

Initializes a new PhoneNumberInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}PhoneNumberInstance]

    phone_number_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



224
225
226
227
# File 'lib/twilio-ruby/rest/lookups/v2/phone_number.rb', line 224

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



233
234
235
# File 'lib/twilio-ruby/rest/lookups/v2/phone_number.rb', line 233

def headers
    @headers
end

#phone_numberObject



229
230
231
# File 'lib/twilio-ruby/rest/lookups/v2/phone_number.rb', line 229

def phone_number
    @phone_number_instance
end

#status_codeObject



237
238
239
# File 'lib/twilio-ruby/rest/lookups/v2/phone_number.rb', line 237

def status_code
    @status_code
end

#to_sObject



241
242
243
# File 'lib/twilio-ruby/rest/lookups/v2/phone_number.rb', line 241

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