Class: Ambient::Device
- Inherits:
-
Object
- Object
- Ambient::Device
- Defined in:
- lib/ambient/device.rb
Instance Attribute Summary collapse
-
#info ⇒ Object
readonly
Returns the value of attribute info.
-
#last_data ⇒ Object
readonly
Returns the value of attribute last_data.
-
#mac_address ⇒ Object
readonly
Returns the value of attribute mac_address.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mac_address, info, last_data) ⇒ Device
constructor
Create a new Device instance.
Constructor Details
#initialize(mac_address, info, last_data) ⇒ Device
Create a new Device instance
30 31 32 33 34 |
# File 'lib/ambient/device.rb', line 30 def initialize(mac_address, info, last_data) @mac_address = mac_address @info = info @last_data = last_data end |
Instance Attribute Details
#info ⇒ Object (readonly)
Returns the value of attribute info.
18 19 20 |
# File 'lib/ambient/device.rb', line 18 def info @info end |
#last_data ⇒ Object (readonly)
Returns the value of attribute last_data.
18 19 20 |
# File 'lib/ambient/device.rb', line 18 def last_data @last_data end |
#mac_address ⇒ Object (readonly)
Returns the value of attribute mac_address.
18 19 20 |
# File 'lib/ambient/device.rb', line 18 def mac_address @mac_address end |