Class: Sail::Configuration
- Inherits:
-
Object
- Object
- Sail::Configuration
- Defined in:
- lib/sail/configuration.rb
Overview
Configuration This class keeps the configuration data for the gem. Defaults be found here and can be overridden in an initializer, environment file or application.rb
Instance Attribute Summary collapse
-
#array_separator ⇒ Object
Returns the value of attribute array_separator.
-
#back_link_path ⇒ Object
Returns the value of attribute back_link_path.
-
#cache_life_span ⇒ Object
Returns the value of attribute cache_life_span.
-
#dashboard_auth_lambda ⇒ Object
Returns the value of attribute dashboard_auth_lambda.
-
#days_until_stale ⇒ Object
Returns the value of attribute days_until_stale.
-
#enable_logging ⇒ Object
Returns the value of attribute enable_logging.
-
#enable_search_auto_submit ⇒ Object
Returns the value of attribute enable_search_auto_submit.
-
#failures_until_reset ⇒ Object
Returns the value of attribute failures_until_reset.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/sail/configuration.rb', line 15 def initialize @cache_life_span = 6.hours @array_separator = ";" @dashboard_auth_lambda = nil @back_link_path = "root_path" @enable_search_auto_submit = true @days_until_stale = 60 @enable_logging = true @failures_until_reset = 50 end |
Instance Attribute Details
#array_separator ⇒ Object
Returns the value of attribute array_separator.
11 12 13 |
# File 'lib/sail/configuration.rb', line 11 def array_separator @array_separator end |
#back_link_path ⇒ Object
Returns the value of attribute back_link_path.
11 12 13 |
# File 'lib/sail/configuration.rb', line 11 def back_link_path @back_link_path end |
#cache_life_span ⇒ Object
Returns the value of attribute cache_life_span.
11 12 13 |
# File 'lib/sail/configuration.rb', line 11 def cache_life_span @cache_life_span end |
#dashboard_auth_lambda ⇒ Object
Returns the value of attribute dashboard_auth_lambda.
11 12 13 |
# File 'lib/sail/configuration.rb', line 11 def dashboard_auth_lambda @dashboard_auth_lambda end |
#days_until_stale ⇒ Object
Returns the value of attribute days_until_stale.
11 12 13 |
# File 'lib/sail/configuration.rb', line 11 def days_until_stale @days_until_stale end |
#enable_logging ⇒ Object
Returns the value of attribute enable_logging.
11 12 13 |
# File 'lib/sail/configuration.rb', line 11 def enable_logging @enable_logging end |
#enable_search_auto_submit ⇒ Object
Returns the value of attribute enable_search_auto_submit.
11 12 13 |
# File 'lib/sail/configuration.rb', line 11 def enable_search_auto_submit @enable_search_auto_submit end |
#failures_until_reset ⇒ Object
Returns the value of attribute failures_until_reset.
11 12 13 |
# File 'lib/sail/configuration.rb', line 11 def failures_until_reset @failures_until_reset end |