Sha256: 03b4f5f76f233db58e565a7d6f53d22bcb63efb7b6bc49d8b9844ec0ab0499cd
Contents?: true
Size: 641 Bytes
Versions: 2
Compression:
Stored size: 641 Bytes
Contents
require 'meter_cat/engine' require 'meter_cat/calculator' require 'meter_cat/config' module MeterCat def self.add( name, value = 1, created_on = Date.today ) MeterCat::Cache.instance.add( name, value, created_on ) end def self.set( name, value = 1, created_on = Date.today ) MeterCat::Meter.set( name, value, created_on ) end def self.config return MeterCat::Config.instance end def self.configure yield config end def self.mail MeterCat::MeterMailer.report.deliver MeterCat.add( :meter_cat_mail ) end def self.names ( Meter.names + MeterCat::config.calculator.keys ).sort end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
meter_cat-0.0.7 | lib/meter_cat.rb |
meter_cat-0.0.6 | lib/meter_cat.rb |