Class: Subduino::Parse::Flow

Inherits:
Analogic show all
Defined in:
lib/subduino/parse/flow.rb

Instance Method Summary collapse

Methods inherited from Analogic

#digital?, #ratio

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

#parseObject



4
5
6
# File 'lib/subduino/parse/flow.rb', line 4

def parse
  (@v * 0.5).to_i
end

#to_sObject



8
9
10
# File 'lib/subduino/parse/flow.rb', line 8

def to_s
  "#{parse} cm3/h"
end