Class: Licensee::Matchers::Package
- Inherits:
-
Object
- Object
- Licensee::Matchers::Package
show all
- Defined in:
- lib/licensee/matchers/package_matcher.rb
Instance Method Summary
collapse
Constructor Details
#initialize(file) ⇒ Package
Returns a new instance of Package.
4
5
6
|
# File 'lib/licensee/matchers/package_matcher.rb', line 4
def initialize(file)
@file = file
end
|
Instance Method Details
#confidence ⇒ Object
12
13
14
|
# File 'lib/licensee/matchers/package_matcher.rb', line 12
def confidence
90
end
|
#match ⇒ Object
8
9
10
|
# File 'lib/licensee/matchers/package_matcher.rb', line 8
def match
Licensee.licenses(hidden: true).find { |l| l.key == license_property }
end
|