Class: IWonder::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/i_wonder/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_nameObject

Returns the value of attribute app_name.



13
14
15
# File 'lib/i_wonder/configuration.rb', line 13

def app_name
  @app_name
end

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_ignoreObject

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_forObject

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_200Object

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_intervalObject

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