Sha256: 1d56d5793623cb8b9e94b042f0a900b9b193daee12bc89ec4961f2b8f6bf8b35

Contents?: true

Size: 863 Bytes

Versions: 3

Compression:

Stored size: 863 Bytes

Contents

require_relative "year_2016/base"
require_relative "year_2016/citizen_or_spr_3"
require_relative "year_2016/spr_2_gg"
require_relative "year_2016/spr_2_fg"
require_relative "year_2016/spr_1_gg"
require_relative "year_2016/spr_1_fg"

module SingaporeCPFCalculator
  # Contains the calculators that are used for determining CPF contribution for 2014.
  module Year2016

    class << self

      include YearCommon

      # @param [Date] date when the CPF contribution is to be calculated for.
      # @return [true, false] true when the date's year is within 2016~2022
      def applies_to?(date)
        date.year >= 2016 && date.year < 2022
      end

      private

      def residency_modules
        [
          CitizenOrSPR3,
          SPR2GG,
          SPR2FG,
          SPR1GG,
          SPR1FG,
          BeforeSPR,
        ]
      end

    end

  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
singapore_cpf_calculator-1.5.1 lib/singapore_cpf_calculator/year_2016.rb
singapore_cpf_calculator-1.5.0 lib/singapore_cpf_calculator/year_2016.rb
singapore_cpf_calculator-1.4.0 lib/singapore_cpf_calculator/year_2016.rb