Class: Evilution::Reporter::JSON Private

Inherits:
Object
  • Object
show all
Defined in:
lib/evilution/reporter/json.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Constructor Details

#initialize(suggest_tests: false, integration: :rspec) ⇒ JSON

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of JSON.



11
12
13
# File 'lib/evilution/reporter/json.rb', line 11

def initialize(suggest_tests: false, integration: :rspec)
  @suggestion = Evilution::Reporter::Suggestion.new(suggest_tests: suggest_tests, integration: integration)
end

Instance Method Details

#call(summary) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
16
17
# File 'lib/evilution/reporter/json.rb', line 15

def call(summary)
  ::JSON.generate(build_report(summary))
end