Class: Holidays::UseCaseFactory
- Inherits:
-
Object
- Object
- Holidays::UseCaseFactory
- Defined in:
- lib/holidays/use_case_factory.rb
Class Method Summary collapse
Class Method Details
.between ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/holidays/use_case_factory.rb', line 10 def between UseCase::Context::Between.new( DefinitionFactory.holidays_by_month_repository, DateCalculatorFactory.day_of_month_calculator, DefinitionFactory.custom_methods_repository, DefinitionFactory.proc_result_cache_repository, ) end |
.dates_driver_builder ⇒ Object
36 37 38 |
# File 'lib/holidays/use_case_factory.rb', line 36 def dates_driver_builder UseCase::Context::DatesDriverBuilder.new end |
.next_holiday ⇒ Object
18 19 20 21 22 23 24 25 |
# File 'lib/holidays/use_case_factory.rb', line 18 def next_holiday UseCase::Context::NextHoliday.new( DefinitionFactory.holidays_by_month_repository, DateCalculatorFactory.day_of_month_calculator, DefinitionFactory.custom_methods_repository, DefinitionFactory.proc_result_cache_repository, ) end |
.year_holiday ⇒ Object
27 28 29 30 31 32 33 34 |
# File 'lib/holidays/use_case_factory.rb', line 27 def year_holiday UseCase::Context::YearHoliday.new( DefinitionFactory.holidays_by_month_repository, DateCalculatorFactory.day_of_month_calculator, DefinitionFactory.custom_methods_repository, DefinitionFactory.proc_result_cache_repository, ) end |