Sha256: 383732e8bb198acd693b5ba07e940121edece3ea4a7ac62799a852434a54b397

Contents?: true

Size: 1.14 KB

Versions: 34

Compression:

Stored size: 1.14 KB

Contents

require 'inch/evaluation/proxy'

module Inch
  module API
    module Options
      class Suggest < Base
        # This module is included here and in Command::Options::Suggest
        # to ensure the same default values for the command-line and library
        # interface
        module DefaultAttributeValues
          DEFAULT_OBJECT_COUNT        = 20
          DEFAULT_FILE_COUNT          = 5
          DEFAULT_PROPER_GRADES       = [:A, :B]
          DEFAULT_GRADES_TO_DISPLAY   = [:B, :C, :U]
          DEFAULT_GRADE_WEIGHTS       = [0.2, 0.4, 0.4]
          DEFAULT_OBJECT_MIN_PRIORITY = 0
          DEFAULT_OBJECT_MAX_SCORE    = ::Inch::Evaluation::Proxy::MAX_SCORE
        end

        include DefaultAttributeValues

        attribute :object_count, DEFAULT_OBJECT_COUNT
        attribute :file_count, DEFAULT_FILE_COUNT
        attribute :proper_grades, DEFAULT_PROPER_GRADES
        attribute :grades_to_display, DEFAULT_GRADES_TO_DISPLAY
        attribute :grade_weights, DEFAULT_GRADE_WEIGHTS
        attribute :object_min_priority, DEFAULT_OBJECT_MIN_PRIORITY
        attribute :object_max_score, DEFAULT_OBJECT_MAX_SCORE
      end
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
inch-0.9.0.rc1 lib/inch/api/options/suggest.rb
inch-0.8.0 lib/inch/api/options/suggest.rb
inch-0.8.0.rc2 lib/inch/api/options/suggest.rb
inch-0.8.0.rc1 lib/inch/api/options/suggest.rb
inch-0.7.1 lib/inch/api/options/suggest.rb
inch-0.7.0 lib/inch/api/options/suggest.rb
inch-0.6.4 lib/inch/api/options/suggest.rb
inch-0.6.3 lib/inch/api/options/suggest.rb
inch-0.6.2 lib/inch/api/options/suggest.rb
inch-0.6.1 lib/inch/api/options/suggest.rb
inch-0.6.0 lib/inch/api/options/suggest.rb
inch-0.6.0.rc6 lib/inch/api/options/suggest.rb
inch-0.6.0.rc5 lib/inch/api/options/suggest.rb
inch-0.6.0.rc4 lib/inch/api/options/suggest.rb
inch-0.6.0.rc3 lib/inch/api/options/suggest.rb
inch-0.6.0.rc2 lib/inch/api/options/suggest.rb
inch-0.6.0.rc1 lib/inch/api/options/suggest.rb
inch-0.5.10 lib/inch/api/options/suggest.rb
inch-0.5.9 lib/inch/api/options/suggest.rb
inch-0.5.8 lib/inch/api/options/suggest.rb