Class: TinyAppstoreConnect::Model::Device
- Inherits:
-
Object
- Object
- TinyAppstoreConnect::Model::Device
- Includes:
- TinyAppstoreConnect::Model
- Defined in:
- lib/tiny_appstore_connect/models/device.rb
Defined Under Namespace
Modules: DeviceClass, Status
Instance Attribute Summary collapse
-
#added_date ⇒ Object
Returns the value of attribute added_date.
-
#app ⇒ Object
include.
-
#build ⇒ Object
attr_accessor :app_store_version_submission.
-
#device_class ⇒ Object
Returns the value of attribute device_class.
-
#model ⇒ Object
Returns the value of attribute model.
-
#name ⇒ Object
Returns the value of attribute name.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#status ⇒ Object
Returns the value of attribute status.
-
#udid ⇒ Object
Returns the value of attribute udid.
Attributes included from TinyAppstoreConnect::Model
Class Method Summary collapse
Instance Method Summary collapse
Methods included from TinyAppstoreConnect::Model
included, #initialize, #update_attributes, #update_include
Instance Attribute Details
#added_date ⇒ Object
Returns the value of attribute added_date.
16 17 18 |
# File 'lib/tiny_appstore_connect/models/device.rb', line 16 def added_date @added_date end |
#app ⇒ Object
include
38 39 40 |
# File 'lib/tiny_appstore_connect/models/device.rb', line 38 def app @app end |
#build ⇒ Object
attr_accessor :app_store_version_submission
40 41 42 |
# File 'lib/tiny_appstore_connect/models/device.rb', line 40 def build @build end |
#device_class ⇒ Object
Returns the value of attribute device_class.
10 11 12 |
# File 'lib/tiny_appstore_connect/models/device.rb', line 10 def device_class @device_class end |
#model ⇒ Object
Returns the value of attribute model.
11 12 13 |
# File 'lib/tiny_appstore_connect/models/device.rb', line 11 def model @model end |
#name ⇒ Object
Returns the value of attribute name.
12 13 14 |
# File 'lib/tiny_appstore_connect/models/device.rb', line 12 def name @name end |
#platform ⇒ Object
Returns the value of attribute platform.
13 14 15 |
# File 'lib/tiny_appstore_connect/models/device.rb', line 13 def platform @platform end |
#status ⇒ Object
Returns the value of attribute status.
14 15 16 |
# File 'lib/tiny_appstore_connect/models/device.rb', line 14 def status @status end |
#udid ⇒ Object
Returns the value of attribute udid.
15 16 17 |
# File 'lib/tiny_appstore_connect/models/device.rb', line 15 def udid @udid end |
Class Method Details
.type ⇒ Object
56 57 58 |
# File 'lib/tiny_appstore_connect/models/device.rb', line 56 def self.type return 'devices' end |
Instance Method Details
#device ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/tiny_appstore_connect/models/device.rb', line 18 def device return model unless model.nil? case device_class when DeviceClass::APPLE_WATCH 'Apple Watch' when DeviceClass::IPAD 'iPad' when DeviceClass::IPHONE 'iPhone' when DeviceClass::IPOD 'iPod Touch' when DeviceClass::APPLE_TV 'Apple TV' when DeviceClass::MAC 'macOS' end end |