class Metrux::Commands::Meter
Constants
- METER_MEASUREMENT_PREFIX_KEY
Public Instance Methods
execute(key, params = {})
click to toggle source
# File lib/metrux/commands/meter.rb, line 6 def execute(key, params = {}) key = "#{METER_MEASUREMENT_PREFIX_KEY}#{key}" value = params.fetch(:value, 1).to_i write(key, format_data(value, params), format_write_options(params)) end