Class: MOSAIK::Metric

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options, graph) ⇒ Metric

Returns a new instance of Metric.



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

def initialize(options, graph)
  @options = options
  @graph = graph
end

Instance Attribute Details

#graphObject (readonly)

Returns the value of attribute graph.



5
6
7
# File 'lib/mosaik/metric.rb', line 5

def graph
  @graph
end

#optionsObject (readonly)

Returns the value of attribute options.



5
6
7
# File 'lib/mosaik/metric.rb', line 5

def options
  @options
end

Instance Method Details

#evaluateObject

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/mosaik/metric.rb', line 12

def evaluate
  raise NotImplementedError
end