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.



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

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



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

def esim_profile
    @esim_profile_instance
end

#headersObject



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

def headers
    @headers
end

#status_codeObject



356
357
358
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 356

def status_code
    @status_code
end

#to_sObject



360
361
362
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 360

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