Module: Shamu::Entities::ListScope::Dates
- Defined in:
- lib/shamu/entities/list_scope/dates.rb
Overview
Attributes collapse
-
#default_since ⇒ Time
Default #since if not specified.
-
#default_until ⇒ Time
Default #until if not specified.
-
#since ⇒ Time
Include only records added since the given timestamp.
-
#until ⇒ Time
Include only records up until the given timestamp.
Instance Method Summary collapse
-
#dated? ⇒ Boolean
True if the scope is dated.
Instance Attribute Details
#default_since ⇒ Time
Returns default #since if not specified.
|
# File 'lib/shamu/entities/list_scope/dates.rb', line 29
|
#default_until ⇒ Time
Returns default #until if not specified.
|
# File 'lib/shamu/entities/list_scope/dates.rb', line 32
|
#since ⇒ Time
Returns include only records added since the given timestamp.
|
# File 'lib/shamu/entities/list_scope/dates.rb', line 23
|
#until ⇒ Time
Returns include only records up until the given timestamp.
|
# File 'lib/shamu/entities/list_scope/dates.rb', line 26
|
Instance Method Details
#dated? ⇒ Boolean
Returns true if the scope is dated.
50 51 52 |
# File 'lib/shamu/entities/list_scope/dates.rb', line 50 def dated? !!self.since || !!self.until # rubocop:disable Style/RedundantSelf end |