Class: JCF::Metric
- Inherits:
-
Object
- Object
- JCF::Metric
- Defined in:
- lib/jcf/metric.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/jcf/metric.rb', line 7 def name @name end |
#value ⇒ Object
Returns the value of attribute value.
7 8 9 |
# File 'lib/jcf/metric.rb', line 7 def value @value end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/jcf/metric.rb', line 9 def to_s "#{name}: #{value}" end |