Class: Spaceship::Tunes::RecoveryDevice
- Defined in:
- lib/spaceship/tunes/recovery_device.rb
Instance Attribute Summary collapse
-
#device_id ⇒ String
ID provided by Apple.
-
#device_image ⇒ String
Remote URL to an image representing this device This shows the attention to detail by Apple <3.
- #last_two_digits ⇒ String
- #model_name ⇒ String
-
#name ⇒ String
The name of the device.
- #status ⇒ Bool
-
#trusted ⇒ Bool
This device looks suspicious [add emoji here] this will probably always be true, otherwise the device doesn’t show up.
- #update_date ⇒ Number
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from TunesBase
Methods inherited from Base
attr_accessor, attr_mapping, #attributes, attributes, #initialize, #inspect, mapping_module, method_missing, set_client, #setup, #to_s
Constructor Details
This class inherits a constructor from Spaceship::Base
Instance Attribute Details
#device_id ⇒ String
Returns ID provided by Apple.
7 8 9 |
# File 'lib/spaceship/tunes/recovery_device.rb', line 7 def device_id @device_id end |
#device_image ⇒ String
Returns Remote URL to an image representing this device This shows the attention to detail by Apple <3.
32 33 34 |
# File 'lib/spaceship/tunes/recovery_device.rb', line 32 def device_image @device_image end |
#last_two_digits ⇒ String
44 45 46 |
# File 'lib/spaceship/tunes/recovery_device.rb', line 44 def last_two_digits @last_two_digits end |
#model_name ⇒ String
39 40 41 |
# File 'lib/spaceship/tunes/recovery_device.rb', line 39 def model_name @model_name end |
#name ⇒ String
Returns The name of the device.
12 13 14 |
# File 'lib/spaceship/tunes/recovery_device.rb', line 12 def name @name end |
#status ⇒ Bool
24 25 26 |
# File 'lib/spaceship/tunes/recovery_device.rb', line 24 def status @status end |
#trusted ⇒ Bool
Returns This device looks suspicious [add emoji here] this will probably always be true, otherwise the device doesn’t show up.
19 20 21 |
# File 'lib/spaceship/tunes/recovery_device.rb', line 19 def trusted @trusted end |
#update_date ⇒ Number
49 50 51 |
# File 'lib/spaceship/tunes/recovery_device.rb', line 49 def update_date @update_date end |
Class Method Details
.factory(attrs) ⇒ Object
63 64 65 |
# File 'lib/spaceship/tunes/recovery_device.rb', line 63 def factory(attrs) return self.new(attrs) end |