Method: InstStatsd::BlockStat#initialize
- Defined in:
- lib/inst_statsd/block_stat.rb
#initialize(common_key, statsd = InstStatsd::Statsd, tags: {}, short_stat: nil) ⇒ BlockStat
Returns a new instance of BlockStat.
7 8 9 10 11 12 13 14 |
# File 'lib/inst_statsd/block_stat.rb', line 7 def initialize(common_key, statsd = InstStatsd::Statsd, tags: {}, short_stat: nil) self.common_key = common_key @tags = @short_stat = short_stat @short_stat ||= common_key @statsd = statsd @stats = {} end |