Repository is archived
No commit activity in last 3 years
No release in over 3 years
Repository helpers: Page
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.16
~> 5.0
~> 10.0
~> 0.16
 Project Readme

getto-repository

rubygems: getto-repository

Repository helper

require "getto/repository/page"

Getto::Repository::Page.new(count:   0, limit: 100).pages # => 0
Getto::Repository::Page.new(count:   1, limit: 100).pages # => 1
Getto::Repository::Page.new(count:  50, limit: 100).pages # => 1
Getto::Repository::Page.new(count: 100, limit: 100).pages # => 1
Getto::Repository::Page.new(count: 101, limit: 100).pages # => 2
Getto::Repository::Page.new(count: 200, limit: 100).pages # => 2
Getto::Repository::Page.new(count: 202, limit: 100).pages # => 3
Table of Contents
  • Requirements
  • Usage
  • License

Requirements

  • developed on ruby: 2.5.1

Usage

Install

Add this line to your application's Gemfile:

gem 'getto-repository'

And then execute:

$ bundle

Or install it yourself as:

$ gem install getto-repository

License

getto/repository is licensed under the MIT license.

Copyright © since 2018 shun@getto.systems