Module: Sneakers::Concerns::Metrics::ClassMethods
- Defined in:
- lib/sneakers/concerns/metrics.rb
Instance Method Summary collapse
Instance Method Details
#configure_metrics(metrics = nil) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/sneakers/concerns/metrics.rb', line 22 def configure_metrics(metrics=nil) if metrics @metrics = metrics else @metrics = Sneakers::Metrics::NullMetrics.new end end |
#metrics ⇒ Object
14 15 16 |
# File 'lib/sneakers/concerns/metrics.rb', line 14 def metrics @metrics end |
#metrics=(metrics) ⇒ Object
18 19 20 |
# File 'lib/sneakers/concerns/metrics.rb', line 18 def metrics=(metrics) @metrics = metrics end |