Class: LicenseFinder::JsonReport

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

Constant Summary

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.



5
6
7
# File 'lib/license_finder/reports/json_report.rb', line 5

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

Instance Method Details

#to_sObject



9
10
11
# File 'lib/license_finder/reports/json_report.rb', line 9

def to_s
  {dependencies: build_deps}.to_json
end