Class: JCF::Metric

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name.



7
8
9
# File 'lib/jcf/metric.rb', line 7

def name
  @name
end

#valueObject

Returns the value of attribute value.



7
8
9
# File 'lib/jcf/metric.rb', line 7

def value
  @value
end

Instance Method Details

#to_sObject



9
10
11
# File 'lib/jcf/metric.rb', line 9

def to_s
  "#{name}: #{value}"
end