Class: Twilio::REST::Supersim::V1::SettingsUpdateInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Supersim::V1::SettingsUpdateInstance
- 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
-
#date_completed ⇒ Time
The time when the update successfully completed and the new settings were applied to the SIM.
-
#date_created ⇒ Time
The date this Settings Update was created.
-
#date_updated ⇒ Time
The date this Settings Update was last updated.
-
#iccid ⇒ String
The ICCID associated with the SIM.
-
#initialize(version, payload) ⇒ SettingsUpdateInstance
constructor
Initialize the SettingsUpdateInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#packages ⇒ Array[Hash]
Array containing the different Settings Packages that will be applied to the SIM after the update completes.
-
#sid ⇒ String
The unique identifier of this Settings Update.
-
#sim_sid ⇒ String
The SID of the Super SIM to which this Settings Update was applied.
-
#status ⇒ settings_update.Status
The Status of this Settings Update.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload) ⇒ SettingsUpdateInstance
Initialize the SettingsUpdateInstance
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 161 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_completed ⇒ Time
Returns The time when the update successfully completed and the new settings were applied to the SIM.
209 210 211 |
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 209 def date_completed @properties['date_completed'] end |
#date_created ⇒ Time
Returns The date this Settings Update was created.
215 216 217 |
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 215 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The date this Settings Update was last updated.
221 222 223 |
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 221 def date_updated @properties['date_updated'] end |
#iccid ⇒ String
Returns The ICCID associated with the SIM.
185 186 187 |
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 185 def iccid @properties['iccid'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
233 234 235 |
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 233 def inspect "<Twilio.Supersim.V1.SettingsUpdateInstance>" end |
#packages ⇒ Array[Hash]
Returns Array containing the different Settings Packages that will be applied to the SIM after the update completes.
203 204 205 |
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 203 def packages @properties['packages'] end |
#sid ⇒ String
Returns The unique identifier of this Settings Update.
179 180 181 |
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 179 def sid @properties['sid'] end |
#sim_sid ⇒ String
Returns The SID of the Super SIM to which this Settings Update was applied.
191 192 193 |
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 191 def sim_sid @properties['sim_sid'] end |
#status ⇒ settings_update.Status
Returns The Status of this Settings Update.
197 198 199 |
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 197 def status @properties['status'] end |
#to_s ⇒ Object
Provide a user friendly representation
227 228 229 |
# File 'lib/twilio-ruby/rest/supersim/v1/settings_update.rb', line 227 def to_s "<Twilio.Supersim.V1.SettingsUpdateInstance>" end |