Class: Rack::Combobot::Config

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Config

Returns a new instance of Config.



6
7
8
9
10
# File 'lib/rack/combobot/config.rb', line 6

def initialize(options)
  @root           = options[:root]
  @expires        = options[:expires]
  @cache_control  = options[:cache_control]
end

Instance Attribute Details

#cache_controlObject

Returns the value of attribute cache_control.



4
5
6
# File 'lib/rack/combobot/config.rb', line 4

def cache_control
  @cache_control
end

#expiresObject

Returns the value of attribute expires.



4
5
6
# File 'lib/rack/combobot/config.rb', line 4

def expires
  @expires
end

#rootObject

Returns the value of attribute root.



4
5
6
# File 'lib/rack/combobot/config.rb', line 4

def root
  @root
end