Module: Uberbringer::DateHelper
- Included in:
- QueryBase
- Defined in:
- lib/uberbringer/date_helper.rb
Instance Method Summary collapse
Instance Method Details
#sunday_before_last ⇒ Object
12 13 14 |
# File 'lib/uberbringer/date_helper.rb', line 12 def sunday_before_last this_past_sunday - 7 end |
#this_past_sunday ⇒ Object
4 5 6 |
# File 'lib/uberbringer/date_helper.rb', line 4 def this_past_sunday Date.today - Date.today.wday end |
#today ⇒ Object
8 9 10 |
# File 'lib/uberbringer/date_helper.rb', line 8 def today Date.today - 1 end |