Module: Shamu::Entities::ListScope::WindowPaging
- Defined in:
- lib/shamu/entities/list_scope/window_paging.rb
Overview
Attributes collapse
-
#after ⇒ Integer
The number of records to skip from the beginning.
-
#before ⇒ Integer
The number of records to skip from the end.
-
#first ⇒ Integer
Get the first n records.
-
#last ⇒ Integer
Get the last n records.
Instance Method Summary collapse
-
#window_paged? ⇒ Boolean
True if the scope is paged.
Instance Attribute Details
#after ⇒ Integer
Returns the number of records to skip from the beginning.
|
# File 'lib/shamu/entities/list_scope/window_paging.rb', line 26
|
#before ⇒ Integer
Returns the number of records to skip from the end.
|
# File 'lib/shamu/entities/list_scope/window_paging.rb', line 32
|
#first ⇒ Integer
Returns get the first n records.
|
# File 'lib/shamu/entities/list_scope/window_paging.rb', line 23
|
#last ⇒ Integer
Returns get the last n records.
|
# File 'lib/shamu/entities/list_scope/window_paging.rb', line 29
|
Instance Method Details
#window_paged? ⇒ Boolean
Returns true if the scope is paged.
71 72 73 |
# File 'lib/shamu/entities/list_scope/window_paging.rb', line 71 def window_paged? first? || last? end |