Class: LicenseFinder::Report

Inherits:
Object
  • Object
show all
Defined in:
lib/license_finder/report.rb

Direct Known Subclasses

CsvReport, ErbReport

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(dependencies, options) ⇒ Report

Returns a new instance of Report.



9
10
11
12
13
# File 'lib/license_finder/report.rb', line 9

def initialize(dependencies, options)
  @dependencies = dependencies
  @project_name = options[:project_name]
  @use_spdx_id = options[:use_spdx_id]
end

Class Method Details

.of(dependencies, options) ⇒ Object



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

def self.of(dependencies, options)
  new(dependencies, options).to_s
end