Class: Jeti::Log::Header
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#sensor_id ⇒ Object
readonly
Returns the value of attribute sensor_id.
-
#unit ⇒ Object
readonly
Returns the value of attribute unit.
Attributes inherited from Entry
Instance Method Summary collapse
-
#initialize(time, id, details) ⇒ Header
constructor
A new instance of Header.
Methods inherited from Entry
Constructor Details
#initialize(time, id, details) ⇒ Header
Returns a new instance of Header.
7 8 9 10 11 12 |
# File 'lib/jeti/log/header.rb', line 7 def initialize(time, id, details) super @sensor_id = details[0] @name = details[1] @unit = details[2] end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/jeti/log/header.rb', line 5 def name @name end |
#sensor_id ⇒ Object (readonly)
Returns the value of attribute sensor_id.
5 6 7 |
# File 'lib/jeti/log/header.rb', line 5 def sensor_id @sensor_id end |
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
5 6 7 |
# File 'lib/jeti/log/header.rb', line 5 def unit @unit end |