Class: Twilio::REST::Numbers::V1::PortingPortabilityInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, porting_portability_instance, headers, status_code) ⇒ PortingPortabilityInstanceMetadata

Initializes a new PortingPortabilityInstanceMetadata.

Parameters:

  • Version that contains the resource

  • porting_portability_instance The instance associated with the metadata.

  • Header object with response headers.

  • The HTTP status code of the response.



146
147
148
149
# File 'lib/twilio-ruby/rest/numbers/v1/porting_portability.rb', line 146

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

Instance Method Details

#headersObject



155
156
157
# File 'lib/twilio-ruby/rest/numbers/v1/porting_portability.rb', line 155

def headers
    @headers
end

#porting_portabilityObject



151
152
153
# File 'lib/twilio-ruby/rest/numbers/v1/porting_portability.rb', line 151

def porting_portability
    @porting_portability_instance
end

#status_codeObject



159
160
161
# File 'lib/twilio-ruby/rest/numbers/v1/porting_portability.rb', line 159

def status_code
    @status_code
end

#to_sObject



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

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