Class: Twilio::REST::Supersim::V1::NetworkInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, network_instance, headers, status_code) ⇒ NetworkInstanceMetadata

Initializes a new NetworkInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}NetworkInstance]

    network_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



269
270
271
272
# File 'lib/twilio-ruby/rest/supersim/v1/network.rb', line 269

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

Instance Method Details

#headersObject



278
279
280
# File 'lib/twilio-ruby/rest/supersim/v1/network.rb', line 278

def headers
    @headers
end

#networkObject



274
275
276
# File 'lib/twilio-ruby/rest/supersim/v1/network.rb', line 274

def network
    @network_instance
end

#status_codeObject



282
283
284
# File 'lib/twilio-ruby/rest/supersim/v1/network.rb', line 282

def status_code
    @status_code
end

#to_sObject



286
287
288
# File 'lib/twilio-ruby/rest/supersim/v1/network.rb', line 286

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