Class: ApiOnlyPagination::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/api_only_pagination/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
# File 'lib/api_only_pagination/configuration.rb', line 7

def initialize
  @default_page_size = 20
  @max_per_page = 100
  @default_page = 1
end

Instance Attribute Details

#default_pageObject

Returns the value of attribute default_page.



5
6
7
# File 'lib/api_only_pagination/configuration.rb', line 5

def default_page
  @default_page
end

#default_page_sizeObject

Returns the value of attribute default_page_size.



5
6
7
# File 'lib/api_only_pagination/configuration.rb', line 5

def default_page_size
  @default_page_size
end

#max_per_pageObject

Returns the value of attribute max_per_page.



5
6
7
# File 'lib/api_only_pagination/configuration.rb', line 5

def max_per_page
  @max_per_page
end