Class: Dhis2::PaginatedArray
- Inherits:
-
Array
- Object
- Array
- Dhis2::PaginatedArray
- Defined in:
- lib/dhis2/paginated_array.rb
Instance Attribute Summary collapse
-
#pager ⇒ Object
readonly
Returns the value of attribute pager.
Instance Method Summary collapse
-
#initialize(array, raw_pager = nil) ⇒ PaginatedArray
constructor
A new instance of PaginatedArray.
Constructor Details
#initialize(array, raw_pager = nil) ⇒ PaginatedArray
Returns a new instance of PaginatedArray.
7 8 9 10 |
# File 'lib/dhis2/paginated_array.rb', line 7 def initialize(array, raw_pager = nil) super(array) @pager = Pager.new(raw_pager) if raw_pager end |
Instance Attribute Details
#pager ⇒ Object (readonly)
Returns the value of attribute pager.
5 6 7 |
# File 'lib/dhis2/paginated_array.rb', line 5 def pager @pager end |