Class: LicenseFinder::JsonReport

Inherits:
CsvReport show all
Defined in:
lib/license_finder/reports/json_report.rb

Constant Summary collapse

NEWLINE_SEP =
"\n".freeze

Constants inherited from CsvReport

CsvReport::AVAILABLE_COLUMNS, CsvReport::COMMA_SEP, CsvReport::MISSING_DEPENDENCY_TEXT

Instance Method Summary collapse

Methods inherited from Report

of

Constructor Details

#initialize(dependencies, options) ⇒ JsonReport

Returns a new instance of JsonReport.



7
8
9
# File 'lib/license_finder/reports/json_report.rb', line 7

def initialize(dependencies, options)
  super(dependencies, options)
end

Instance Method Details

#to_sObject



11
12
13
# File 'lib/license_finder/reports/json_report.rb', line 11

def to_s
  {dependencies: build_deps}.to_json
end