Class: MxHero::API::PaginatedElements
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- MxHero::API::PaginatedElements
- Defined in:
- lib/groups.rb
Instance Attribute Summary collapse
-
#actual_page ⇒ Object
readonly
Returns the value of attribute actual_page.
-
#total_elements ⇒ Object
readonly
Returns the value of attribute total_elements.
-
#total_pages ⇒ Object
readonly
Returns the value of attribute total_pages.
Instance Method Summary collapse
-
#initialize(paginable, total_elements, total_pages, actual_page) ⇒ PaginatedElements
constructor
A new instance of PaginatedElements.
Constructor Details
#initialize(paginable, total_elements, total_pages, actual_page) ⇒ PaginatedElements
Returns a new instance of PaginatedElements.
12 13 14 15 16 17 |
# File 'lib/groups.rb', line 12 def initialize(paginable, total_elements, total_pages, actual_page) super(paginable) @total_elements = total_elements @total_pages = total_pages @actual_page = actual_page end |
Instance Attribute Details
#actual_page ⇒ Object (readonly)
Returns the value of attribute actual_page.
11 12 13 |
# File 'lib/groups.rb', line 11 def actual_page @actual_page end |
#total_elements ⇒ Object (readonly)
Returns the value of attribute total_elements.
11 12 13 |
# File 'lib/groups.rb', line 11 def total_elements @total_elements end |
#total_pages ⇒ Object (readonly)
Returns the value of attribute total_pages.
11 12 13 |
# File 'lib/groups.rb', line 11 def total_pages @total_pages end |