Class: Rack::Refresher::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/rack/refresher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#ajaxObject

Returns the value of attribute ajax.



7
8
9
# File 'lib/rack/refresher.rb', line 7

def ajax
  @ajax
end

#intervalObject Also known as: delay

Returns the value of attribute interval.



7
8
9
# File 'lib/rack/refresher.rb', line 7

def interval
  @interval
end