Class: Statue::CaptureBackend

Inherits:
Object
  • Object
show all
Defined in:
lib/statue/backends/capture.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCaptureBackend

Returns a new instance of CaptureBackend.



5
6
7
# File 'lib/statue/backends/capture.rb', line 5

def initialize
  @captures = []
end

Instance Attribute Details

#capturesObject (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