Class: ActiveRecordCursorPaginate::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/activerecord_cursor_paginate/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_sizeObject

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_sizeObject

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