Class: RbPager::Configuration
- Inherits:
-
Object
- Object
- RbPager::Configuration
- Defined in:
- lib/rb_pager/configuration.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#max_limit ⇒ Object
Returns the value of attribute max_limit.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 |
# File 'lib/rb_pager/configuration.rb', line 5 def initialize @limit = 20 @max_limit = 100 end |
Instance Attribute Details
#limit ⇒ Object
Returns the value of attribute limit.
3 4 5 |
# File 'lib/rb_pager/configuration.rb', line 3 def limit @limit end |
#max_limit ⇒ Object
Returns the value of attribute max_limit.
3 4 5 |
# File 'lib/rb_pager/configuration.rb', line 3 def max_limit @max_limit end |