Class: Twilio::REST::Supersim::V1::EsimProfileListResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ EsimProfileListResponse

Returns a new instance of EsimProfileListResponse.

Parameters:



361
362
363
364
365
366
367
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 361

def initialize(version, payload, key)
   @esim_profile_instance = payload.body[key].map do |data|
    EsimProfileInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#esim_profileObject



450
451
452
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 450

def esim_profile
    @esim_profile
end

#esim_profile_instanceObject



369
370
371
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 369

def esim_profile_instance
    @instance
end

#headersObject



454
455
456
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 454

def headers
  @headers
end

#status_codeObject



458
459
460
# File 'lib/twilio-ruby/rest/supersim/v1/esim_profile.rb', line 458

def status_code
  @status_code
end