Class: Riemann::State
- Inherits:
-
Object
- Object
- Riemann::State
- Includes:
- Beefcake::Message
- Defined in:
- lib/riemann/state.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ State
constructor
A new instance of State.
Constructor Details
#initialize ⇒ State
Returns a new instance of State.
17 18 19 20 21 |
# File 'lib/riemann/state.rb', line 17 def initialize super @time ||= Time.now.to_i end |
Instance Attribute Details
#metric ⇒ Object
23 24 25 |
# File 'lib/riemann/state.rb', line 23 def metric @metric || metric_f end |