module Metrics

  class Licenses < Metric

    attr_reader :score

    def initialize
      @score = 0.0
    end

    def compute(record)
    end

  end

end

module Metrics

  class Licenses < Metric

    attr_reader :score

    def license_valid?(id)
      licenses = { "dl-de-by-1.0" => true }
      licenses[id]
    end

    def initialize
      @score = 0.0
    end

    def compute(record)
      license = record[:license_id]
      @score = 1.0 if license_valid?(license)
    end

  end

end

Add more code to the license metric
Add more code to the license metric

Just started to write some code for the license metric. I will have to
find a good way to consolidate different data licenses and on what terms
it is open/valid and on what terms it is not.

Signed-off-by: Konrad Reiche <4ff0213f56e2082fcd8c882d04c546881c579ce4@gmail.com>
