Class: ApiOnlyPagination::Configuration
- Inherits:
-
Object
- Object
- ApiOnlyPagination::Configuration
- Defined in:
- lib/api_only_pagination/configuration.rb
Instance Attribute Summary collapse
-
#default_page ⇒ Object
Returns the value of attribute default_page.
-
#default_page_size ⇒ Object
Returns the value of attribute default_page_size.
-
#max_per_page ⇒ Object
Returns the value of attribute max_per_page.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_page ⇒ Object
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_size ⇒ Object
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_page ⇒ Object
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 |