Class: IWonder::Configuration
- Inherits:
-
Object
- Object
- IWonder::Configuration
- Defined in:
- lib/i_wonder/configuration.rb
Instance Attribute Summary collapse
-
#app_name ⇒ Object
Returns the value of attribute app_name.
-
#back_to_app_link ⇒ Object
Returns the value of attribute back_to_app_link.
-
#controllers_to_ignore ⇒ Object
Returns the value of attribute controllers_to_ignore.
-
#keep_hits_for ⇒ Object
Returns the value of attribute keep_hits_for.
-
#only_log_hits_on_200 ⇒ Object
Returns the value of attribute only_log_hits_on_200.
-
#return_visit_interval ⇒ Object
Returns the value of attribute return_visit_interval.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
16 17 18 19 20 21 22 23 |
# File 'lib/i_wonder/configuration.rb', line 16 def initialize @keep_hits_for = 2.weeks @controllers_to_ignore = ALWAYS_AVOID_CONTROLLERS @only_log_hits_on_200 = true @back_to_app_link = "/" @app_name = "My App" @return_visit_interval = 1.hour end |
Instance Attribute Details
#app_name ⇒ Object
Returns the value of attribute app_name.
13 14 15 |
# File 'lib/i_wonder/configuration.rb', line 13 def app_name @app_name end |
#back_to_app_link ⇒ Object
Returns the value of attribute back_to_app_link.
13 14 15 |
# File 'lib/i_wonder/configuration.rb', line 13 def back_to_app_link @back_to_app_link end |
#controllers_to_ignore ⇒ Object
Returns the value of attribute controllers_to_ignore.
14 15 16 |
# File 'lib/i_wonder/configuration.rb', line 14 def controllers_to_ignore @controllers_to_ignore end |
#keep_hits_for ⇒ Object
Returns the value of attribute keep_hits_for.
13 14 15 |
# File 'lib/i_wonder/configuration.rb', line 13 def keep_hits_for @keep_hits_for end |
#only_log_hits_on_200 ⇒ Object
Returns the value of attribute only_log_hits_on_200.
13 14 15 |
# File 'lib/i_wonder/configuration.rb', line 13 def only_log_hits_on_200 @only_log_hits_on_200 end |
#return_visit_interval ⇒ Object
Returns the value of attribute return_visit_interval.
13 14 15 |
# File 'lib/i_wonder/configuration.rb', line 13 def return_visit_interval @return_visit_interval end |