Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/business_time/core_ext/integer.rb
Overview
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)
Instance Method Summary collapse
- #business_days ⇒ Object (also: #business_day)
- #business_hours ⇒ Object (also: #business_hour)
Instance Method Details
#business_days ⇒ Object Also known as: business_day
12 13 14 |
# File 'lib/business_time/core_ext/integer.rb', line 12 def business_days BusinessTime::BusinessDays.new(self) end |
#business_hours ⇒ Object Also known as: business_hour
7 8 9 |
# File 'lib/business_time/core_ext/integer.rb', line 7 def business_hours BusinessTime::BusinessHours.new(self) end |