class CursorPager::Configuration
Encapulates all the configuration for the library.
Attributes
default_page_size[RW]
The default page size that will be used if no `first` or `last` were specified. Every record fitting the cursor constraints will be returned if it's set to `nil`. Defaults to `nil`.
encoder[RW]
The encoder that will be used to encode & decode cursors. Defaults to `Base64Encoder`.
maximum_page_size[RW]
The maximum allowed page size. Clients will never receive more records per page than is sepcified here. There is no maximum if this is set to `nil`. Defaults to `nil`.
Public Class Methods
new()
click to toggle source
# File lib/cursor_pager/configuration.rb, line 22 def initialize @encoder = Base64Encoder @default_page_size = nil @maximum_page_size = nil end