Sha256: 1fb9efba6404007d7763d5ef9079623651187c6b24aafb07764a3748e05c4e41

Contents?: true

Size: 318 Bytes

Versions: 7

Compression:

Stored size: 318 Bytes

Contents

# frozen_string_literal: true

module EveOnline
  module Formulas
    class TrainingRate
      attr_reader :primary, :secondary

      def initialize(primary, secondary)
        @primary = primary
        @secondary = secondary
      end

      def rate
        primary + (secondary / 2.0)
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
eve_online-0.46.0 lib/eve_online/formulas/training_rate.rb
eve_online-0.45.0 lib/eve_online/formulas/training_rate.rb
eve_online-0.44.0 lib/eve_online/formulas/training_rate.rb
eve_online-0.43.0 lib/eve_online/formulas/training_rate.rb
eve_online-0.42.0 lib/eve_online/formulas/training_rate.rb
eve_online-0.41.0 lib/eve_online/formulas/training_rate.rb
eve_online-0.40.0 lib/eve_online/formulas/training_rate.rb