Sha256: a29402b7ad7d1a9d78140607bcfe6a46866cf28e86036aa84a64e3a84121f705

Contents?: true

Size: 243 Bytes

Versions: 11

Compression:

Stored size: 243 Bytes

Contents

# frozen_string_literal: true

module Dhis2
  class PaginatedArray < DelegateClass(Array)
    attr_reader :pager

    def initialize(array, raw_pager = nil)
      super(array)
      @pager = Pager.new(raw_pager) if raw_pager
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dhis2-3.3.1 lib/dhis2/paginated_array.rb
dhis2-3.2.1 lib/dhis2/paginated_array.rb
dhis2-3.0.7 lib/dhis2/paginated_array.rb
dhis2-3.0.5 lib/dhis2/paginated_array.rb
dhis2-3.0.4 lib/dhis2/paginated_array.rb
dhis2-3.0.3 lib/dhis2/paginated_array.rb
dhis2-3.0.2 lib/dhis2/paginated_array.rb
dhis2-3.0.0 lib/dhis2/paginated_array.rb
dhis2-2.3.8 lib/dhis2/paginated_array.rb
dhis2-2.3.7 lib/dhis2/paginated_array.rb
dhis2-2.3.6 lib/dhis2/paginated_array.rb