Class: Ducksboard::Pin
Instance Attribute Summary
Attributes inherited from Widget
Instance Method Summary collapse
Methods inherited from Widget
#initialize, #save, #timestamp, #timestamp=, #update, #value, #value=
Constructor Details
This class inherits a constructor from Ducksboard::Widget
Instance Method Details
#valid? ⇒ Boolean
3 4 5 |
# File 'lib/ducksboard/pin.rb', line 3 def valid? @data[:value].is_a?(Integer) end |