module FinnishHolidays

Constants

VERSION

Public Class Methods

month(month, year, include_weekends = false) click to toggle source

Lists holidays for the given month (and year)

# File lib/finnish-holidays.rb, line 15
def self.month(month, year, include_weekends = false)
  FinnishHolidays::Calendar.new(year, month, 1).month(month, year, include_weekends)
end
next(count = 3, include_weekends = false) click to toggle source

Lists the next holidays relative to today’s date

# File lib/finnish-holidays.rb, line 5
def self.next(count = 3, include_weekends = false)
  Calendar.new.next(count, include_weekends)
end
year(year, include_weekends = false) click to toggle source

Lists holidays for the given year

# File lib/finnish-holidays.rb, line 10
def self.year(year, include_weekends = false)
  FinnishHolidays::Calendar.new(year, 1, 1).year(year, include_weekends)
end