Module: CoffeeOutside::EventTime
- Defined in:
- lib/coffeeoutside/event_time.rb
Class Method Summary collapse
Class Method Details
.end_time ⇒ Object
18 19 20 21 22 23 24 |
# File 'lib/coffeeoutside/event_time.rb', line 18 def self.end_time DateTime.new( next_friday.year, next_friday.month, next_friday.day, 8, 30, 0, "-07:00" ) end |
.next_friday ⇒ Object
5 6 7 8 |
# File 'lib/coffeeoutside/event_time.rb', line 5 def self.next_friday # TODO: this is gross... @next_friday ||= Date.today + [5, 4, 3, 2, 1, 7, 6][Date.today.wday] end |
.start_time ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/coffeeoutside/event_time.rb', line 10 def self.start_time DateTime.new( next_friday.year, next_friday.month, next_friday.day, 7, 30, 0, "-07:00" ) end |