Class: GoldenRose::ResultsFilterer

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

Defined Under Namespace

Classes: Results

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(parsed_plist) ⇒ ResultsFilterer

Returns a new instance of ResultsFilterer.



8
9
10
# File 'lib/golden_rose/results_filterer.rb', line 8

def initialize(parsed_plist)
  @parsed_plist = parsed_plist
end

Instance Attribute Details

#parsed_plistObject

Returns the value of attribute parsed_plist.



6
7
8
# File 'lib/golden_rose/results_filterer.rb', line 6

def parsed_plist
  @parsed_plist
end

#resultsObject

Returns the value of attribute results.



6
7
8
# File 'lib/golden_rose/results_filterer.rb', line 6

def results
  @results
end

Instance Method Details

#filter!Object

Raises:



12
13
14
15
16
# File 'lib/golden_rose/results_filterer.rb', line 12

def filter!
  raise GeneratingError, "Testable summaries not present." unless testable_summaries
  raise GeneratingError, "Tests not present." unless tests
  @results = Results.new(execution_details, items)
end