module Taxger::Lohnsteuer

Public Instance Methods

calculate(year, input) click to toggle source
# File lib/taxger/lohnsteuer.rb, line 22
def calculate(year, input)
  input = Hash[input.map do |key, value|
    [key, Taxger::Lohnsteuer::BigDecimal.new(value)]
  end]
  lst = Object.const_get("Taxger::Lohnsteuer::Lohnsteuer#{year}")
  lst.new(input)
end