Class: ACH::NextFederalReserveEffectiveDate

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

Instance Method Summary collapse

Constructor Details

#initialize(submission_date) ⇒ NextFederalReserveEffectiveDate

Returns a new instance of NextFederalReserveEffectiveDate.



5
6
7
# File 'lib/ach/next_federal_reserve_effective_date.rb', line 5

def initialize(submission_date)
  @submission_date = submission_date
end

Instance Method Details

#resultObject



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

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