Class: RunLoop::Device
- Inherits:
-
Object
- Object
- RunLoop::Device
- Defined in:
- lib/run_loop/device.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#udid ⇒ Object
readonly
Returns the value of attribute udid.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(name, version, udid) ⇒ Device
constructor
A new instance of Device.
Constructor Details
#initialize(name, version, udid) ⇒ Device
Returns a new instance of Device.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/run_loop/device.rb', line 8 def initialize(name, version, udid) @name = name if version.is_a? String @version = RunLoop::Version.new version else @version = version end @udid = udid end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/run_loop/device.rb', line 4 def name @name end |
#udid ⇒ Object (readonly)
Returns the value of attribute udid.
6 7 8 |
# File 'lib/run_loop/device.rb', line 6 def udid @udid end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/run_loop/device.rb', line 5 def version @version end |