Class: Biz::Dates
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- Biz::Dates
- Defined in:
- lib/biz/dates.rb
Instance Method Summary collapse
-
#initialize(schedule) ⇒ Dates
constructor
A new instance of Dates.
Constructor Details
#initialize(schedule) ⇒ Dates
Returns a new instance of Dates.
6 7 8 9 10 11 12 13 |
# File 'lib/biz/dates.rb', line 6 def initialize(schedule) super( Clavius::Schedule.new do |c| c.weekdays = schedule.weekdays c.excluded = schedule.holidays.map(&:to_date) end ) end |