Class: TotenDev::Metrics
- Inherits:
-
Object
- Object
- TotenDev::Metrics
- Defined in:
- lib/tdev_metrics.rb
Instance Attribute Summary collapse
-
#metric ⇒ Object
readonly
Returns the value of attribute metric.
-
#project ⇒ Object
readonly
Returns the value of attribute project.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Metrics
constructor
A new instance of Metrics.
Constructor Details
#initialize(&block) ⇒ Metrics
Returns a new instance of Metrics.
15 16 17 18 |
# File 'lib/tdev_metrics.rb', line 15 def initialize( &block ) @metric = TotenDev::MetricController.new &block @project = TotenDev::ProjectController.new &block end |
Instance Attribute Details
#metric ⇒ Object (readonly)
Returns the value of attribute metric.
13 14 15 |
# File 'lib/tdev_metrics.rb', line 13 def metric @metric end |
#project ⇒ Object (readonly)
Returns the value of attribute project.
13 14 15 |
# File 'lib/tdev_metrics.rb', line 13 def project @project end |