Class: Statue::CaptureBackend
- Inherits:
-
Object
- Object
- Statue::CaptureBackend
- Defined in:
- lib/statue/backends/capture.rb
Instance Attribute Summary collapse
-
#captures ⇒ Object
readonly
Returns the value of attribute captures.
Instance Method Summary collapse
- #collect_metric(metric) ⇒ Object (also: #<<)
-
#initialize ⇒ CaptureBackend
constructor
A new instance of CaptureBackend.
Constructor Details
#initialize ⇒ CaptureBackend
Returns a new instance of CaptureBackend.
5 6 7 |
# File 'lib/statue/backends/capture.rb', line 5 def initialize @captures = [] end |
Instance Attribute Details
#captures ⇒ Object (readonly)
Returns the value of attribute captures.
3 4 5 |
# File 'lib/statue/backends/capture.rb', line 3 def captures @captures end |
Instance Method Details
#collect_metric(metric) ⇒ Object Also known as: <<
9 10 11 |
# File 'lib/statue/backends/capture.rb', line 9 def collect_metric(metric) @captures << metric end |