Sha256: c4f75e30bf94b70ccff3d3c6a282e6e46ef2e0b99fb01017682530a67cb2d2e1

Contents?: true

Size: 290 Bytes

Versions: 8

Compression:

Stored size: 290 Bytes

Contents

module LicenseFinder
  class LicenseAlias < Sequel::Model
    def initialize(*args)
      super
      self.url = LicenseUrl.find_by_name name
    end

    def whitelisted?
      !!(config.whitelisted?(name))
    end

    private

    def config
      LicenseFinder.config
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
license_finder-0.9.4-java lib/license_finder/tables/license_alias.rb
license_finder-0.9.4 lib/license_finder/tables/license_alias.rb
license_finder-0.9.3-java lib/license_finder/tables/license_alias.rb
license_finder-0.9.3 lib/license_finder/tables/license_alias.rb
license_finder-0.9.2-java lib/license_finder/tables/license_alias.rb
license_finder-0.9.2 lib/license_finder/tables/license_alias.rb
license_finder-0.9.1-java lib/license_finder/tables/license_alias.rb
license_finder-0.9.1 lib/license_finder/tables/license_alias.rb