Class: Increments::Schedule::WinterVacationSchedule

Inherits:
Struct
  • Object
show all
Defined in:
lib/increments/schedule.rb

Defined Under Namespace

Classes: NewYearVacation, YearEndVacation

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dateObject

Returns the value of attribute date

Returns:

  • (Object)

    the current value of date



67
68
69
# File 'lib/increments/schedule.rb', line 67

def date
  @date
end

Instance Method Details

#winter_vacation?Boolean

Returns:

  • (Boolean)


68
69
70
# File 'lib/increments/schedule.rb', line 68

def winter_vacation?
  year_end_vacation.days.include?(date) || new_year_vacation.days.include?(date)
end