Class: Tatami::Flot
- Inherits:
-
Object
- Object
- Tatami::Flot
- Defined in:
- lib/tatami/flot.rb
Instance Attribute Summary collapse
-
#couch ⇒ Object
readonly
Returns the value of attribute couch.
Instance Method Summary collapse
- #blank! ⇒ Object
-
#initialize(*args) ⇒ Flot
constructor
A new instance of Flot.
- #record_node_prop(typ, hash, time = Time.now) ⇒ Object
Constructor Details
Instance Attribute Details
#couch ⇒ Object (readonly)
Returns the value of attribute couch.
4 5 6 |
# File 'lib/tatami/flot.rb', line 4 def couch @couch end |
Instance Method Details
#blank! ⇒ Object
14 15 16 17 |
# File 'lib/tatami/flot.rb', line 14 def blank! couch.blank! couch.design_load end |
#record_node_prop(typ, hash, time = Time.now) ⇒ Object
9 10 11 12 |
# File 'lib/tatami/flot.rb', line 9 def record_node_prop typ, hash, time = Time.now time_i = (time.to_i + 7200)*1000 couch.doc_new nil, hash.merge(time: time_i,typ: typ) end |