Class: TotenDev::Metrics

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#metricObject (readonly)

Returns the value of attribute metric.



13
14
15
# File 'lib/tdev_metrics.rb', line 13

def metric
  @metric
end

#projectObject (readonly)

Returns the value of attribute project.



13
14
15
# File 'lib/tdev_metrics.rb', line 13

def project
  @project
end