Class: MEACControl::Device
- Inherits:
-
Object
- Object
- MEACControl::Device
- Defined in:
- lib/meac_control/device.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(device_id, options = {}) ⇒ Device
constructor
A new instance of Device.
Constructor Details
#initialize(device_id, options = {}) ⇒ Device
Returns a new instance of Device.
6 7 8 9 |
# File 'lib/meac_control/device.rb', line 6 def initialize(device_id, = {}) @id = device_id @name = [:name] if [:name] end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/meac_control/device.rb', line 3 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/meac_control/device.rb', line 4 def name @name end |