Class: VarnishRails::Configuration
- Inherits:
-
Object
- Object
- VarnishRails::Configuration
- Defined in:
- lib/varnish_rails.rb
Instance Attribute Summary collapse
-
#enable ⇒ Object
Returns the value of attribute enable.
-
#excluded_models ⇒ Object
Returns the value of attribute excluded_models.
-
#header_x_ban_url ⇒ Object
Returns the value of attribute header_x_ban_url.
-
#header_xkey_purge ⇒ Object
Returns the value of attribute header_xkey_purge.
-
#included_models ⇒ Object
Returns the value of attribute included_models.
-
#maxage_key ⇒ Object
Returns the value of attribute maxage_key.
-
#maxage_value ⇒ Object
Returns the value of attribute maxage_value.
-
#print_requests ⇒ Object
Returns the value of attribute print_requests.
-
#url ⇒ Object
Returns the value of attribute url.
-
#xkey_length ⇒ Object
Returns the value of attribute xkey_length.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/varnish_rails.rb', line 31 def initialize @enable = false @url = 'http://localhost:6081' @maxage_key = 's-maxage' @maxage_value = 3600 @xkey_length = 12 @header_xkey_purge = 'xkey-purge' @header_x_ban_url = 'x-ban-url' @print_requests = false @included_models = nil @excluded_models = nil end |
Instance Attribute Details
#enable ⇒ Object
Returns the value of attribute enable.
29 30 31 |
# File 'lib/varnish_rails.rb', line 29 def enable @enable end |
#excluded_models ⇒ Object
Returns the value of attribute excluded_models.
29 30 31 |
# File 'lib/varnish_rails.rb', line 29 def excluded_models @excluded_models end |
#header_x_ban_url ⇒ Object
Returns the value of attribute header_x_ban_url.
29 30 31 |
# File 'lib/varnish_rails.rb', line 29 def header_x_ban_url @header_x_ban_url end |
#header_xkey_purge ⇒ Object
Returns the value of attribute header_xkey_purge.
29 30 31 |
# File 'lib/varnish_rails.rb', line 29 def header_xkey_purge @header_xkey_purge end |
#included_models ⇒ Object
Returns the value of attribute included_models.
29 30 31 |
# File 'lib/varnish_rails.rb', line 29 def included_models @included_models end |
#maxage_key ⇒ Object
Returns the value of attribute maxage_key.
29 30 31 |
# File 'lib/varnish_rails.rb', line 29 def maxage_key @maxage_key end |
#maxage_value ⇒ Object
Returns the value of attribute maxage_value.
29 30 31 |
# File 'lib/varnish_rails.rb', line 29 def maxage_value @maxage_value end |
#print_requests ⇒ Object
Returns the value of attribute print_requests.
29 30 31 |
# File 'lib/varnish_rails.rb', line 29 def print_requests @print_requests end |
#url ⇒ Object
Returns the value of attribute url.
29 30 31 |
# File 'lib/varnish_rails.rb', line 29 def url @url end |
#xkey_length ⇒ Object
Returns the value of attribute xkey_length.
29 30 31 |
# File 'lib/varnish_rails.rb', line 29 def xkey_length @xkey_length end |