Class: Biz::Holiday
- Inherits:
-
Object
- Object
- Biz::Holiday
- Extended by:
- Forwardable
- Includes:
- Comparable
- Defined in:
- lib/biz/holiday.rb
Instance Method Summary collapse
-
#initialize(date, time_zone) ⇒ Holiday
constructor
A new instance of Holiday.
- #to_date ⇒ Object
- #to_time_segment ⇒ Object
Constructor Details
#initialize(date, time_zone) ⇒ Holiday
Returns a new instance of Holiday.
10 11 12 13 |
# File 'lib/biz/holiday.rb', line 10 def initialize(date, time_zone) @date = date @time_zone = time_zone end |
Instance Method Details
#to_date ⇒ Object
33 34 35 |
# File 'lib/biz/holiday.rb', line 33 def to_date date end |