Module: Holidays::Factory::Finder
- Defined in:
- lib/holidays/factory/finder.rb
Class Method Summary collapse
- .between ⇒ Object
- .next_holiday ⇒ Object
- .parse_options ⇒ Object
- .search ⇒ Object
- .year_holiday ⇒ Object
Class Method Details
.between ⇒ Object
23 24 25 26 27 28 29 |
# File 'lib/holidays/factory/finder.rb', line 23 def between Holidays::Finder::Context::Between.new( search, dates_driver_builder, , ) end |
.next_holiday ⇒ Object
31 32 33 34 35 36 37 |
# File 'lib/holidays/factory/finder.rb', line 31 def next_holiday Holidays::Finder::Context::NextHoliday.new( search, dates_driver_builder, , ) end |
.parse_options ⇒ Object
47 48 49 50 51 52 53 |
# File 'lib/holidays/factory/finder.rb', line 47 def Holidays::Finder::Context::ParseOptions.new( Factory::Definition.regions_repository, Factory::Definition.region_validator, Factory::Definition.loader, ) end |
.search ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/holidays/factory/finder.rb', line 14 def search Holidays::Finder::Context::Search.new( Factory::Definition.holidays_by_month_repository, Factory::Definition.function_processor, Factory::DateCalculator.day_of_month_calculator, rules, ) end |
.year_holiday ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/holidays/factory/finder.rb', line 39 def year_holiday Holidays::Finder::Context::YearHoliday.new( search, dates_driver_builder, , ) end |