Class: Leafy::Metrics::Reporter
- Inherits:
-
Object
- Object
- Leafy::Metrics::Reporter
show all
- Defined in:
- lib/leafy/metrics/reporter.rb
Defined Under Namespace
Classes: Builder
Instance Method Summary
collapse
Constructor Details
#initialize(reporter) ⇒ Reporter
Returns a new instance of Reporter.
13
14
15
|
# File 'lib/leafy/metrics/reporter.rb', line 13
def initialize( reporter )
@reporter = reporter
end
|
Instance Method Details
#report ⇒ Object
25
26
27
|
# File 'lib/leafy/metrics/reporter.rb', line 25
def report
@reporter.report
end
|
#start(period, time_unit) ⇒ Object
17
18
19
|
# File 'lib/leafy/metrics/reporter.rb', line 17
def start( period, time_unit )
@reporter.start( period, time_unit )
end
|
#stop ⇒ Object
21
22
23
|
# File 'lib/leafy/metrics/reporter.rb', line 21
def stop
@reporter.stop
end
|