Class: KrakenMobile::Models::Device
- Inherits:
-
Object
- Object
- KrakenMobile::Models::Device
- Defined in:
- lib/kraken-mobile/models/device.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
Returns the value of attribute config.
-
#id ⇒ Object
——————————- Fields ——————————-.
-
#model ⇒ Object
Returns the value of attribute model.
-
#position ⇒ Object
Returns the value of attribute position.
Instance Method Summary collapse
-
#initialize(id, model, position, config = {}) ⇒ Device
constructor
——————————- Constructors ——————————-.
-
#screenshot_prefix ⇒ Object
——————————- Helpers ——————————-.
Constructor Details
#initialize(id, model, position, config = {}) ⇒ Device
Constructors
16 17 18 19 20 21 |
# File 'lib/kraken-mobile/models/device.rb', line 16 def initialize(id, model, position, config = {}) @id = id @model = model @position = position @config = config end |
Instance Attribute Details
#config ⇒ Object
Returns the value of attribute config.
11 12 13 |
# File 'lib/kraken-mobile/models/device.rb', line 11 def config @config end |
#id ⇒ Object
Fields
8 9 10 |
# File 'lib/kraken-mobile/models/device.rb', line 8 def id @id end |
#model ⇒ Object
Returns the value of attribute model.
9 10 11 |
# File 'lib/kraken-mobile/models/device.rb', line 9 def model @model end |
#position ⇒ Object
Returns the value of attribute position.
10 11 12 |
# File 'lib/kraken-mobile/models/device.rb', line 10 def position @position end |
Instance Method Details
#screenshot_prefix ⇒ Object
Helpers
26 27 28 |
# File 'lib/kraken-mobile/models/device.rb', line 26 def screenshot_prefix @id.gsub('.', '_').gsub(/:(.*)/, '').to_s + '_' end |