Class: Foliate::Config
- Inherits:
-
Object
- Object
- Foliate::Config
- Defined in:
- lib/foliate/config.rb
Instance Attribute Summary collapse
-
#default_per_page ⇒ Integer
Default number of records to allot per page.
-
#page_param ⇒ Symbol
Name of query param used to indicate page number.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
15 16 17 18 |
# File 'lib/foliate/config.rb', line 15 def initialize @default_per_page = 10 @page_param = :page end |
Instance Attribute Details
#default_per_page ⇒ Integer
Default number of records to allot per page. Defaults to 10.
7 8 9 |
# File 'lib/foliate/config.rb', line 7 def default_per_page @default_per_page end |
#page_param ⇒ Symbol
Name of query param used to indicate page number. Defaults to :page.
13 14 15 |
# File 'lib/foliate/config.rb', line 13 def page_param @page_param end |