class Integer

hook into Integer so we can say things like:

5.business_hours.from_now
7.business_days.ago
3.business_days.after(some_date)
4.business_hours.before(some_date_time)

Public Instance Methods

business_day(options={})
Alias for: business_days
business_days(options={}) click to toggle source
# File lib/business_time/core_ext/integer.rb, line 12
def business_days(options={})
  BusinessTime::BusinessDays.new(self, options)
end
Also aliased as: business_day
business_hour(options={})
Alias for: business_hours
business_hours(options={}) click to toggle source
# File lib/business_time/core_ext/integer.rb, line 7
def business_hours(options={})
  BusinessTime::BusinessHours.new(self, options)
end
Also aliased as: business_hour