Class: Ducksboard::Graph
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/graph.rb', line 3 def valid? @data[:timestamp] && @data[:value] end |