Class: PdMetrics::NumericMetric

Inherits:
Object
  • Object
show all
Defined in:
lib/pd_metrics.rb

Direct Known Subclasses

Counter, Gauge, Histogram

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ NumericMetric

Returns a new instance of NumericMetric.



167
168
169
# File 'lib/pd_metrics.rb', line 167

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



165
166
167
# File 'lib/pd_metrics.rb', line 165

def value
  @value
end

Instance Method Details

#to_sObject



171
172
173
# File 'lib/pd_metrics.rb', line 171

def to_s
  @value.to_s
end