Class: MicroQ::Statistics::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/micro_q/statistics/base.rb

Direct Known Subclasses

Default, Redis

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#incrementObject (readonly)

Returns the value of attribute increment.



4
5
6
# File 'lib/micro_q/statistics/base.rb', line 4

def increment
  @increment
end

Class Method Details

.instanceObject



10
11
12
# File 'lib/micro_q/statistics/base.rb', line 10

def self.instance
  @instance ||= new
end

.stats {|instance| ... } ⇒ Object

Yields:



6
7
8
# File 'lib/micro_q/statistics/base.rb', line 6

def self.stats
  yield instance
end