Class: ACH::NextFederalReserveEffectiveDate
- Inherits:
-
Object
- Object
- ACH::NextFederalReserveEffectiveDate
- 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
-
#initialize(submission_date) ⇒ NextFederalReserveEffectiveDate
constructor
A new instance of NextFederalReserveEffectiveDate.
- #result ⇒ Object
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
#result ⇒ Object
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 |