Class: Moneybird::Middleware::Pagination::Links
- Inherits:
-
Object
- Object
- Moneybird::Middleware::Pagination::Links
- Defined in:
- lib/moneybird/middleware/pagination/links.rb
Instance Attribute Summary collapse
-
#current ⇒ Object
Returns the value of attribute current.
-
#first ⇒ Object
Returns the value of attribute first.
-
#last ⇒ Object
Returns the value of attribute last.
-
#next ⇒ Object
Returns the value of attribute next.
-
#prev ⇒ Object
(also: #previous)
Returns the value of attribute prev.
Instance Method Summary collapse
Instance Attribute Details
#current ⇒ Object
Returns the value of attribute current.
7 8 9 |
# File 'lib/moneybird/middleware/pagination/links.rb', line 7 def current @current end |
#first ⇒ Object
Returns the value of attribute first.
7 8 9 |
# File 'lib/moneybird/middleware/pagination/links.rb', line 7 def first @first end |
#last ⇒ Object
Returns the value of attribute last.
7 8 9 |
# File 'lib/moneybird/middleware/pagination/links.rb', line 7 def last @last end |
#next ⇒ Object
Returns the value of attribute next.
7 8 9 |
# File 'lib/moneybird/middleware/pagination/links.rb', line 7 def next @next end |
#prev ⇒ Object Also known as: previous
Returns the value of attribute prev.
7 8 9 |
# File 'lib/moneybird/middleware/pagination/links.rb', line 7 def prev @prev end |
Instance Method Details
#last_page? ⇒ Boolean
11 12 13 |
# File 'lib/moneybird/middleware/pagination/links.rb', line 11 def last_page? !current.nil? && !last.nil? && current == last end |