Class: LicenseFinder::JsonReport
- 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
-
#initialize(dependencies, options) ⇒ JsonReport
constructor
A new instance of JsonReport.
- #to_s ⇒ Object
Methods inherited from Report
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, ) super(dependencies, ) end |
Instance Method Details
#to_s ⇒ Object
11 12 13 |
# File 'lib/license_finder/reports/json_report.rb', line 11 def to_s {dependencies: build_deps}.to_json end |