Class: Jeti::Log::Header

Inherits:
Entry
  • Object
show all
Defined in:
lib/jeti/log/header.rb

Instance Attribute Summary collapse

Attributes inherited from Entry

#id

Instance Method Summary collapse

Methods inherited from Entry

#detail, #time, #value

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

#nameObject (readonly)

Returns the value of attribute name.



5
6
7
# File 'lib/jeti/log/header.rb', line 5

def name
  @name
end

#sensor_idObject (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

#unitObject (readonly)

Returns the value of attribute unit.



5
6
7
# File 'lib/jeti/log/header.rb', line 5

def unit
  @unit
end