Module: Renteneintrittsalter

Defined in:
lib/renteneintrittsalter.rb

Instance Method Summary collapse

Instance Method Details

#renteneintrittsalterObject



3
4
5
6
7
8
9
10
11
# File 'lib/renteneintrittsalter.rb', line 3

def renteneintrittsalter
  @regelaltersrente = 67
  case @geburtsjahr
    when 1946..1957 then @regelaltersrente = 65
    when 1958..1963 then @regelaltersrente = 66
    when 1964..Time.now.year then @regelaltersrente = 67
  end
  return @regelaltersrente
end