Class: ActiveRecordCursorPaginate::Config
- Inherits:
-
Object
- Object
- ActiveRecordCursorPaginate::Config
- Defined in:
- lib/activerecord_cursor_paginate/config.rb
Instance Attribute Summary collapse
-
#default_page_size ⇒ Object
Returns the value of attribute default_page_size.
-
#max_page_size ⇒ Object
Returns the value of attribute max_page_size.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 |
# File 'lib/activerecord_cursor_paginate/config.rb', line 7 def initialize @default_page_size = 10 end |
Instance Attribute Details
#default_page_size ⇒ Object
Returns the value of attribute default_page_size.
5 6 7 |
# File 'lib/activerecord_cursor_paginate/config.rb', line 5 def default_page_size @default_page_size end |
#max_page_size ⇒ Object
Returns the value of attribute max_page_size.
5 6 7 |
# File 'lib/activerecord_cursor_paginate/config.rb', line 5 def max_page_size @max_page_size end |