Class: Twilio::REST::Numbers::V1::PortingPortInPhoneNumberInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, porting_port_in_phone_number_instance, headers, status_code) ⇒ PortingPortInPhoneNumberInstanceMetadata

Initializes a new PortingPortInPhoneNumberInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}PortingPortInPhoneNumberInstance]

    porting_port_in_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.



163
164
165
166
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb', line 163

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

Instance Method Details

#headersObject



172
173
174
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb', line 172

def headers
    @headers
end

#porting_port_in_phone_numberObject



168
169
170
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb', line 168

def porting_port_in_phone_number
    @porting_port_in_phone_number_instance
end

#status_codeObject



176
177
178
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb', line 176

def status_code
    @status_code
end

#to_sObject



180
181
182
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in_phone_number.rb', line 180

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