Class: Twilio::REST::Supersim::V1::EsimProfileInstanceMetadata

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

Instance Method Summary collapse

Constructor Details

#initialize(version, esim_profile_instance, headers, status_code) ⇒ EsimProfileInstanceMetadata

Initializes a new EsimProfileInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}EsimProfileInstance]

    esim_profile_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



335
336
337
338
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 335

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

Instance Method Details

#esim_profileObject



340
341
342
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 340

def esim_profile
    @esim_profile_instance
end

#headersObject



344
345
346
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 344

def headers
    @headers
end

#status_codeObject



348
349
350
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 348

def status_code
    @status_code
end

#to_sObject



352
353
354
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 352

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