Sha256: 3c8c0b479b1ddd46f4b42b8849156a2636133887afa1902126c43bed19104a78

Contents?: true

Size: 300 Bytes

Versions: 5

Compression:

Stored size: 300 Bytes

Contents

# frozen_string_literal: true
module Dhis2
  class Pager
    attr_reader :page, :page_count, :total, :next_page

    def initialize(hash)
      @page       = hash["page"]
      @page_count = hash["page_count"]
      @total      = hash["total"]
      @next_page  = hash["next_page"]
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dhis2-2.3.5 lib/dhis2/pager.rb
dhis2-2.3.4 lib/dhis2/pager.rb
dhis2-2.3.3 lib/dhis2/pager.rb
dhis2-2.3.2 lib/dhis2/pager.rb
dhis2-2.3.1 lib/dhis2/pager.rb