Class: BusinessDaysComputer

Inherits:
Object
  • Object
show all
Defined in:
lib/harvest_overtime/business_days_computer.rb

Instance Method Summary collapse

Instance Method Details

#business_days(start_date, end_date) ⇒ Object



4
5
6
# File 'lib/harvest_overtime/business_days_computer.rb', line 4

def business_days(start_date, end_date)
  (start_date..end_date).reject(&:saturday?).reject(&:sunday?)
end