class FortuneTeller::SocialSecurity::Transform

The transforms generated by social security

Public Class Methods

new(benefit:, **base) click to toggle source
Calls superclass method FortuneTeller::TransformBase::new
# File lib/fortuneteller/social_security.rb, line 57
def initialize(benefit:, **base)
  @benefit = benefit
  super(**base)
end

Public Instance Methods

apply_to(state) click to toggle source
# File lib/fortuneteller/social_security.rb, line 62
def apply_to(state)
  state.apply_ss_income(
    date: date,
    holder: holder,
    income: {ss: @benefit},
  )
end