Class: Subduino::Parse::Flow
- Defined in:
- lib/subduino/parse/flow.rb
Instance Method Summary collapse
Methods inherited from Analogic
Methods inherited from Digital
#digital?, #graph, #initialize, #name, #raw, #sparkline, #type
Constructor Details
This class inherits a constructor from Subduino::Parse::Digital
Instance Method Details
#parse ⇒ Object
4 5 6 |
# File 'lib/subduino/parse/flow.rb', line 4 def parse (@v * 0.5).to_i end |
#to_s ⇒ Object
8 9 10 |
# File 'lib/subduino/parse/flow.rb', line 8 def to_s "#{parse} cm3/h" end |