Sha256: e9fa0e3dc74926efd78da724d8637c34bc7d668c2628eedd97860b52c6e4c77a

Contents?: true

Size: 301 Bytes

Versions: 3

Compression:

Stored size: 301 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

3 entries across 3 versions & 1 rubygems

Version Path
dhis2-2.3.8 lib/dhis2/pager.rb
dhis2-2.3.7 lib/dhis2/pager.rb
dhis2-2.3.6 lib/dhis2/pager.rb