class FortuneTeller::Job::Transform
The transforms generated by job
Public Class Methods
new(income:, account_credits:, **base)
click to toggle source
Calls superclass method
FortuneTeller::TransformBase::new
# File lib/fortuneteller/job.rb, line 62 def initialize(income:, account_credits:, **base) @income = income @account_credits = account_credits super(**base) end
Public Instance Methods
apply_to(state)
click to toggle source
# File lib/fortuneteller/job.rb, line 68 def apply_to(state) state.apply_w2_income( date: date, holder: holder, income: @income, account_credits: @account_credits ) end