Class: Jiminy::Reporting::Reporters::BaseReporter

Inherits:
Object
  • Object
show all
Defined in:
lib/jiminy/reporting/reporters/base_reporter.rb

Direct Known Subclasses

DryRunReporter, GithubReporter

Instance Method Summary collapse

Constructor Details

#initialize(header:, body:) ⇒ BaseReporter

Returns a new instance of BaseReporter.



7
8
9
10
# File 'lib/jiminy/reporting/reporters/base_reporter.rb', line 7

def initialize(header:, body:)
  @header = header
  @body   = body
end

Instance Method Details

#report!Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/jiminy/reporting/reporters/base_reporter.rb', line 12

def report!
  raise NotImplementedError, "Please define #{report!} in #{self}"
end