Module: MetricSense::ClassMethods
Instance Attribute Summary collapse
-
#collector ⇒ Object
readonly
Returns the value of attribute collector.
Instance Method Summary collapse
Instance Attribute Details
#collector ⇒ Object (readonly)
Returns the value of attribute collector.
125 126 127 |
# File 'lib/metricsense.rb', line 125 def collector @collector end |
Instance Method Details
#config(conf) ⇒ Object
120 121 122 123 |
# File 'lib/metricsense.rb', line 120 def config(conf) @collector = Collector.new(conf) self end |
#context ⇒ Object
131 132 133 |
# File 'lib/metricsense.rb', line 131 def context Thread.current[MetricSense.to_s] ||= Context.new(@collector) end |