Class: MxHero::API::PaginatedElements

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/groups.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_pageObject (readonly)

Returns the value of attribute actual_page.



11
12
13
# File 'lib/groups.rb', line 11

def actual_page
  @actual_page
end

#total_elementsObject (readonly)

Returns the value of attribute total_elements.



11
12
13
# File 'lib/groups.rb', line 11

def total_elements
  @total_elements
end

#total_pagesObject (readonly)

Returns the value of attribute total_pages.



11
12
13
# File 'lib/groups.rb', line 11

def total_pages
  @total_pages
end