Class: Twilio::REST::Supersim::V1::SettingsUpdateInstance

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

Overview

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ SettingsUpdateInstance

Initialize the SettingsUpdateInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio



168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 168

def initialize(version, payload)
  super(version)

  # Marshaled Properties
  @properties = {
      'sid' => payload['sid'],
      'iccid' => payload['iccid'],
      'sim_sid' => payload['sim_sid'],
      'status' => payload['status'],
      'packages' => payload['packages'],
      'date_completed' => Twilio.deserialize_iso8601_datetime(payload['date_completed']),
      'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
      'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
  }
end

Instance Method Details

#date_completedTime

Returns The time when the update successfully completed and the new settings were applied to the SIM.

Returns:

  • (Time)

    The time when the update successfully completed and the new settings were applied to the SIM



216
217
218
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 216

def date_completed
  @properties['date_completed']
end

#date_createdTime

Returns The date this Settings Update was created.

Returns:

  • (Time)

    The date this Settings Update was created



222
223
224
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 222

def date_created
  @properties['date_created']
end

#date_updatedTime

Returns The date this Settings Update was last updated.

Returns:

  • (Time)

    The date this Settings Update was last updated



228
229
230
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 228

def date_updated
  @properties['date_updated']
end

#iccidString

Returns The ICCID associated with the SIM.

Returns:

  • (String)

    The ICCID associated with the SIM



192
193
194
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 192

def iccid
  @properties['iccid']
end

#inspectObject

Provide a detailed, user friendly representation



240
241
242
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 240

def inspect
  "<Twilio.Supersim.V1.SettingsUpdateInstance>"
end

#packagesArray[Hash]

Returns Array containing the different Settings Packages that will be applied to the SIM after the update completes.

Returns:

  • (Array[Hash])

    Array containing the different Settings Packages that will be applied to the SIM after the update completes



210
211
212
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 210

def packages
  @properties['packages']
end

#sidString

Returns The unique identifier of this Settings Update.

Returns:

  • (String)

    The unique identifier of this Settings Update



186
187
188
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 186

def sid
  @properties['sid']
end

#sim_sidString

Returns The SID of the Super SIM to which this Settings Update was applied.

Returns:

  • (String)

    The SID of the Super SIM to which this Settings Update was applied



198
199
200
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 198

def sim_sid
  @properties['sim_sid']
end

#statussettings_update.Status

Returns The Status of this Settings Update.

Returns:

  • (settings_update.Status)

    The Status of this Settings Update



204
205
206
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 204

def status
  @properties['status']
end

#to_sObject

Provide a user friendly representation



234
235
236
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 234

def to_s
  "<Twilio.Supersim.V1.SettingsUpdateInstance>"
end