Class: ActionTrace::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
12
# File 'lib/action_trace/configuration.rb', line 7

def initialize
  @excluded_actions      = []
  @excluded_controllers  = []
  @user_class            = 'User'
  @log_retention_period  = 1.year
end

Instance Attribute Details

#excluded_actionsObject

Returns the value of attribute excluded_actions.



5
6
7
# File 'lib/action_trace/configuration.rb', line 5

def excluded_actions
  @excluded_actions
end

#excluded_controllersObject

Returns the value of attribute excluded_controllers.



5
6
7
# File 'lib/action_trace/configuration.rb', line 5

def excluded_controllers
  @excluded_controllers
end

#log_retention_periodObject

Returns the value of attribute log_retention_period.



5
6
7
# File 'lib/action_trace/configuration.rb', line 5

def log_retention_period
  @log_retention_period
end

#user_classObject

Returns the value of attribute user_class.



5
6
7
# File 'lib/action_trace/configuration.rb', line 5

def user_class
  @user_class
end