Class: ACH::NextFederalReserveEffectiveDate

Inherits:
Object
  • Object
show all
Defined in:
lib/ach/next_federal_reserve_effective_date.rb

Constant Summary collapse

FEDERAL_RESERVE_SYMBOL =
if Gem.loaded_specs['holidays'].version < Gem::Version.new('7.0.0')
  :federal_reserve
else
  :federalreserve
end

Instance Method Summary collapse

Constructor Details

#initialize(submission_date) ⇒ NextFederalReserveEffectiveDate

Returns a new instance of NextFederalReserveEffectiveDate.



11
12
13
# File 'lib/ach/next_federal_reserve_effective_date.rb', line 11

def initialize(submission_date)
  @submission_date = submission_date
end

Instance Method Details

#resultObject



15
16
17
18
19
20
# File 'lib/ach/next_federal_reserve_effective_date.rb', line 15

def result
  @result = @submission_date
  advance_to_next_business_day
  advance_extra_day_if_submission_date_is_holiday_or_weekend
  @result
end