Class: ReeDatetime::HoursSince
- Inherits:
-
Object
- Object
- ReeDatetime::HoursSince
- Includes:
- Ree::FnDSL
- Defined in:
- lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/hours_since.rb
Instance Method Summary collapse
Instance Method Details
#call(date_time = nil, hours_count) ⇒ Object
13 14 15 16 |
# File 'lib/ree_lib/packages/ree_datetime/package/ree_datetime/functions/hours_since.rb', line 13 def call(date_time = nil, hours_count) date_time = date_time || now advance(date_time, hours: hours_count) end |