Sha256: f6422dfd29e58a6f195b91b190d12e50179b6f4f9f63b0a51cd7b5402528113a

Contents?: true

Size: 222 Bytes

Versions: 4

Compression:

Stored size: 222 Bytes

Contents

module Getto
  module Repository
    class Page
      def initialize(count:, limit:)
        @count = count
        @limit = limit
      end

      def pages
        (@count.to_f / @limit).ceil
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
getto-repository-1.0.5 lib/getto/repository/page.rb
getto-repository-1.0.2 lib/getto/repository/page.rb
getto-repository-1.0.1 lib/getto/repository/page.rb
getto-repository-1.0.0 lib/getto/repository/page.rb