Module: NextdaysHelper

Defined in:
app/helpers/nextdays_helper.rb

Instance Method Summary collapse

Instance Method Details

#cut_off_timeObject



19
20
21
# File 'app/helpers/nextdays_helper.rb', line 19

def cut_off_time
  Time.zone.now.cut_off_time
end

#delivery_dayObject



11
12
13
# File 'app/helpers/nextdays_helper.rb', line 11

def delivery_day
  Time.zone.now.delivery_day
end

#delivery_day_in_englishObject



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_dayObject



3
4
5
# File 'app/helpers/nextdays_helper.rb', line 3

def despatch_day
  Time.zone.now.despatch_day
end

#despatch_day_in_englishObject



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