Class: Pelusa::Reporter

Inherits:
Object
  • Object
show all
Defined in:
lib/pelusa/reporters/reporter.rb

Direct Known Subclasses

RubyReporter, StdoutReporter

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename) ⇒ Reporter

Returns a new instance of Reporter


6
7
8
# File 'lib/pelusa/reporters/reporter.rb', line 6

def initialize(filename)
  @filename = filename
end

Class Method Details


3
4
# File 'lib/pelusa/reporters/reporter.rb', line 3

def self.print_banner
end

Instance Method Details

#reportObject

Raises:

  • (NotImplementedError)

14
15
16
# File 'lib/pelusa/reporters/reporter.rb', line 14

def report
  raise NotImplementedError
end

#reports=(reports) ⇒ Object


10
11
12
# File 'lib/pelusa/reporters/reporter.rb', line 10

def reports=(reports)
  @reports = reports
end

#successful?Boolean

Returns:

  • (Boolean)

18
19
20
# File 'lib/pelusa/reporters/reporter.rb', line 18

def successful?
  @reports.all? { |report| report.successful? }
end