Sha256: 2f3841138c52377254d4e178abc7c6a96800b544010ea5474f0cd8a88c83a2d2

Contents?: true

Size: 260 Bytes

Versions: 5

Compression:

Stored size: 260 Bytes

Contents

module OmiseGO
  class Pagination < Base
    attributes :per_page, :is_last_page, :is_first_page, :current_page
    private :is_first_page, :is_last_page

    def first_page?
      is_first_page
    end

    def last_page?
      is_last_page
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
omisego-0.12.0 lib/omisego/pagination.rb
omisego-0.11.0 lib/omisego/pagination.rb
omisego-0.10.0 lib/omisego/pagination.rb
omisego-0.9.6 lib/omisego/pagination.rb
omisego-0.9.5 lib/omisego/pagination.rb