Class: Subduino::Parse::Pressure
- Defined in:
- lib/subduino/parse/pressure.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/pressure.rb', line 4 def parse (@v * 0.5).to_i end |
#to_s ⇒ Object
8 9 10 |
# File 'lib/subduino/parse/pressure.rb', line 8 def to_s "#{parse} psi" end |