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