class Biz::Calculation::OnHoliday
Attributes
schedule[R]
time[R]
Public Class Methods
new(schedule, time)
click to toggle source
# File lib/biz/calculation/on_holiday.rb, line 7 def initialize(schedule, time) @schedule = schedule @time = time end
Public Instance Methods
result()
click to toggle source
# File lib/biz/calculation/on_holiday.rb, line 12 def result schedule.holidays.any? { |holiday| holiday.contains?(time) } end