class OVOV::Calculator::Base

Attributes

performance[RW]
points[R]

Public Class Methods

new(performance = 0) click to toggle source
# File lib/calculator/base.rb, line 7
def initialize(performance = 0)
  @points = 0
  @performance = performance
end

Public Instance Methods

calculate() click to toggle source
# File lib/calculator/base.rb, line 12
def calculate
  raise CalculatorError.new('Should be implemented in subclass')
end