Class: JSOM::Pagination::Page

Inherits:
Dry::Struct
  • Object
show all
Defined in:
lib/jsom/pagination/page.rb

Overview

A value object for requested page. Usage: JSOM::Pagination::Page.new(number: 1, size: 20) Works for string values and symbols, supports defaults. Ignores extra keys Sets 1 for negative values