Module: BusinessCalendar
- Defined in:
- lib/business_calendar.rb,
lib/business_calendar/version.rb
Defined Under Namespace
Modules: Shim Classes: Calendar, HolidayDeterminer
Constant Summary collapse
- CountryNotSupported =
Class.new(StandardError)
- OrganizationNotSupported =
Class.new(StandardError)
- VERSION =
"3.1.1"
Class Method Summary collapse
- .for(country, options = {}) ⇒ Object
- .for_endpoint(additions, removals, options = {}) ⇒ Object
- .for_organization(org, options = {}) ⇒ Object
Class Method Details
.for(country, options = {}) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/business_calendar.rb', line 7 def for(country, = {}) if ["use_cached_calendar"] calendar_cache[country] ||= Calendar.new(holiday_determiner(country)) else Calendar.new(holiday_determiner(country), ) end end |