Class: Twilio::REST::Numbers::V1::PortingPortInInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, porting_port_in_instance, headers, status_code) ⇒ PortingPortInInstanceMetadata

Initializes a new PortingPortInInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}PortingPortInInstance]

    porting_port_in_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



294
295
296
297
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 294

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

Instance Method Details

#headersObject



303
304
305
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 303

def headers
    @headers
end

#porting_port_inObject



299
300
301
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 299

def porting_port_in
    @porting_port_in_instance
end

#status_codeObject



307
308
309
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 307

def status_code
    @status_code
end

#to_sObject



311
312
313
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 311

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