Class: PdMetrics::NumericMetric
- Inherits:
-
Object
- Object
- PdMetrics::NumericMetric
- Defined in:
- lib/pd_metrics.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ NumericMetric
constructor
A new instance of NumericMetric.
- #to_s ⇒ Object
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
#value ⇒ Object (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_s ⇒ Object
171 172 173 |
# File 'lib/pd_metrics.rb', line 171 def to_s @value.to_s end |