Class: AuditLoggable::Configuration
- Inherits:
-
Object
- Object
- AuditLoggable::Configuration
- Defined in:
- lib/audit_loggable/configuration.rb
Instance Attribute Summary collapse
-
#audit_log_path ⇒ Object
Returns the value of attribute audit_log_path.
-
#audit_log_shift_age ⇒ Object
Returns the value of attribute audit_log_shift_age.
-
#audit_log_shift_period_suffix ⇒ Object
Returns the value of attribute audit_log_shift_period_suffix.
-
#audit_log_shift_size ⇒ Object
Returns the value of attribute audit_log_shift_size.
-
#audit_log_timezone ⇒ Object
Returns the value of attribute audit_log_timezone.
-
#auditing_enabled ⇒ Object
Returns the value of attribute auditing_enabled.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_path ⇒ Object
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_age ⇒ Object
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_suffix ⇒ Object
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_size ⇒ Object
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_timezone ⇒ Object
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_enabled ⇒ Object
Returns the value of attribute auditing_enabled.
5 6 7 |
# File 'lib/audit_loggable/configuration.rb', line 5 def auditing_enabled @auditing_enabled end |