Class: Metricstore::RangeUpdater
- Defined in:
- lib/metricstore/range_updater.rb
Instance Attribute Summary
Attributes inherited from Updater
Instance Method Summary collapse
Methods inherited from Updater
#backlog, #healthy?, #initialize, #start!, #stop!
Constructor Details
This class inherits a constructor from Metricstore::Updater
Instance Method Details
#update_range(key, value, ttl = nil) ⇒ Object
4 5 6 7 |
# File 'lib/metricstore/range_updater.rb', line 4 def update_range(key, value, ttl=nil) raise(ArgumentError, "value must be numeric") unless value.is_a?(Numeric) update(key, [value, value], ttl) end |