Module: NextdaysHelper
- Defined in:
- app/helpers/nextdays_helper.rb
Instance Method Summary collapse
- #cut_off_time ⇒ Object
- #delivery_day ⇒ Object
- #delivery_day_in_english ⇒ Object
- #despatch_day ⇒ Object
- #despatch_day_in_english ⇒ Object
Instance Method Details
#cut_off_time ⇒ Object
19 20 21 |
# File 'app/helpers/nextdays_helper.rb', line 19 def cut_off_time Time.zone.now.cut_off_time end |
#delivery_day ⇒ Object
11 12 13 |
# File 'app/helpers/nextdays_helper.rb', line 11 def delivery_day Time.zone.now.delivery_day end |
#delivery_day_in_english ⇒ Object
15 16 17 |
# File 'app/helpers/nextdays_helper.rb', line 15 def delivery_day_in_english delivery_day.strftime("%A #{delivery_day.day.ordinalize} %B") end |
#despatch_day ⇒ Object
3 4 5 |
# File 'app/helpers/nextdays_helper.rb', line 3 def despatch_day Time.zone.now.despatch_day end |
#despatch_day_in_english ⇒ Object
7 8 9 |
# File 'app/helpers/nextdays_helper.rb', line 7 def despatch_day_in_english despatch_day.strftime("%A #{despatch_day.day.ordinalize} %B") end |