Class: NextPage::Configuration
- Inherits:
-
Object
- Object
- NextPage::Configuration
- Defined in:
- lib/next_page/configuration.rb
Overview
# Configuration
Class Configuration stores the following settings:
-
default_per_page
Instance Attribute Summary collapse
-
#default_per_page ⇒ Object
Returns the value of attribute default_per_page.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
11 12 13 |
# File 'lib/next_page/configuration.rb', line 11 def initialize @default_per_page = 12 end |
Instance Attribute Details
#default_per_page ⇒ Object
Returns the value of attribute default_per_page.
9 10 11 |
# File 'lib/next_page/configuration.rb', line 9 def default_per_page @default_per_page end |