Class: BuildEval::Monitor::Composite

Inherits:
Base
  • Object
show all
Defined in:
lib/build_eval/monitor/composite.rb

Instance Method Summary collapse

Methods inherited from Base

#+

Constructor Details

#initialize(*monitors) ⇒ Composite

Returns a new instance of Composite.


6
7
8
# File 'lib/build_eval/monitor/composite.rb', line 6

def initialize(*monitors)
  @monitors = monitors
end

Instance Method Details

#evaluateObject


10
11
12
# File 'lib/build_eval/monitor/composite.rb', line 10

def evaluate
  BuildEval::Result::CompositeResult.new(@monitors.map(&:evaluate))
end