Class: Rack::Refresher::Config
- Inherits:
-
Object
- Object
- Rack::Refresher::Config
- Defined in:
- lib/rack/refresher.rb
Instance Attribute Summary collapse
-
#ajax ⇒ Object
Returns the value of attribute ajax.
-
#interval ⇒ Object
(also: #delay)
Returns the value of attribute interval.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
11 12 13 14 |
# File 'lib/rack/refresher.rb', line 11 def initialize @interval = 5000 @ajax = false end |
Instance Attribute Details
#ajax ⇒ Object
Returns the value of attribute ajax.
7 8 9 |
# File 'lib/rack/refresher.rb', line 7 def ajax @ajax end |
#interval ⇒ Object Also known as: delay
Returns the value of attribute interval.
7 8 9 |
# File 'lib/rack/refresher.rb', line 7 def interval @interval end |