class Moar::Config
Attributes
accumulation_param[RW]
Name of query param used to indicate when paginated results are accumulative. Defaults to :accum
.
@return [Symbol]
increments[RW]
Pagination increments used by {Moar::Controller#moar}. Defaults to +[12,24,24]+. Controller-specific increments can also be set via {Moar::Controller::ClassMethods#moar_increments}.
@return [Array<Integer>]
page_param[RW]
Name of query param used to indicate page number. Defaults to :page
.
@return [Symbol]
Public Class Methods
new()
click to toggle source
# File lib/moar/config.rb, line 23 def initialize @increments = [12, 24, 24] @page_param = :page @accumulation_param = :accum end