lib/smart_answer/calculators/state_pension_amount_calculator.rb
## this is done just to control flow
this is done just to control flow
this is done just to control flow
def allocate_starting_credits
      if three_year_credit_age?
        @starting_credits = 3
      elsif at_least_two_year_credit_age?
        @starting_credits = 2
      elsif at_least_one_year_credit_age?
        @starting_credits = 1
      else
        @starting_credits = 0
      end
    end
def allocate_starting_credits if three_year_credit_age? @starting_credits = 3 elsif at_least_two_year_credit_age? @starting_credits = 2 elsif at_least_one_year_credit_age? @starting_credits = 1 else @starting_credits = 0 end end
this is done just to control flow
this is done just to control flow