Class: BuildEval::Result::CompositeResult

Inherits:
Object
  • Object
show all
Defined in:
lib/build_eval/result/composite_result.rb

Instance Method Summary collapse

Constructor Details

#initialize(results) ⇒ CompositeResult

Returns a new instance of CompositeResult.


6
7
8
# File 'lib/build_eval/result/composite_result.rb', line 6

def initialize(results)
  @results = results
end

Instance Method Details

#statusObject


10
11
12
# File 'lib/build_eval/result/composite_result.rb', line 10

def status
  BuildEval::Result::Status.effective_status(@results.map(&:status))
end

#to_sObject


18
19
20
# File 'lib/build_eval/result/composite_result.rb', line 18

def to_s
  @results.map(&:to_s).join("\n")
end

#unsuccessfulObject


14
15
16
# File 'lib/build_eval/result/composite_result.rb', line 14

def unsuccessful
  @results.map(&:unsuccessful).flatten
end