Class: AuditLoggable::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
13
14
# File 'lib/audit_loggable/configuration.rb', line 8

def initialize
  self.auditing_enabled = true
  self.audit_log_shift_age = 0
  self.audit_log_shift_size = 1024 * 1024
  self.audit_log_shift_period_suffix = "%Y%m%d"
  self.audit_log_timezone = :local
end

Instance Attribute Details

#audit_log_pathObject

Returns the value of attribute audit_log_path.



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

def audit_log_path
  @audit_log_path
end

#audit_log_shift_ageObject

Returns the value of attribute audit_log_shift_age.



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

def audit_log_shift_age
  @audit_log_shift_age
end

#audit_log_shift_period_suffixObject

Returns the value of attribute audit_log_shift_period_suffix.



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

def audit_log_shift_period_suffix
  @audit_log_shift_period_suffix
end

#audit_log_shift_sizeObject

Returns the value of attribute audit_log_shift_size.



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

def audit_log_shift_size
  @audit_log_shift_size
end

#audit_log_timezoneObject

Returns the value of attribute audit_log_timezone.



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

def audit_log_timezone
  @audit_log_timezone
end

#auditing_enabledObject

Returns the value of attribute auditing_enabled.



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

def auditing_enabled
  @auditing_enabled
end