module Openplacos::Analog
Namespace for Analog
signals.
Public Instance Methods
render()
click to toggle source
render method is supposed to be overlaoded this method is like a view this method returns a string formatted as needed for the client to express an analog value
# File lib/openplacos/widget/Analog.rb, line 32 def render return to_s end
to_s()
click to toggle source
convert an analog value to a string supposed to be generic to all clients can be easily overloaded if needed
# File lib/openplacos/widget/Analog.rb, line 25 def to_s read({}).round(2).to_s end