Class: Loghandler::Rules::GenericLogRule
- Inherits:
-
AbstractRule
- Object
- AbstractRule
- Loghandler::Rules::GenericLogRule
- Defined in:
- lib/loghandler/rules/generic_log_rule.rb
Instance Method Summary collapse
- #apply! ⇒ Object
-
#initialize(log_detail) ⇒ GenericLogRule
constructor
A new instance of GenericLogRule.
- #log ⇒ Object
- #loggable? ⇒ Boolean
- #persist? ⇒ Boolean
- #showable? ⇒ Boolean
Methods inherited from AbstractRule
Constructor Details
#initialize(log_detail) ⇒ GenericLogRule
Returns a new instance of GenericLogRule.
5 6 7 |
# File 'lib/loghandler/rules/generic_log_rule.rb', line 5 def initialize(log_detail) @log_detail=log_detail end |
Instance Method Details
#apply! ⇒ Object
8 9 |
# File 'lib/loghandler/rules/generic_log_rule.rb', line 8 def apply! end |
#log ⇒ Object
10 11 12 |
# File 'lib/loghandler/rules/generic_log_rule.rb', line 10 def log @log_detail.to_json end |
#loggable? ⇒ Boolean
13 14 15 |
# File 'lib/loghandler/rules/generic_log_rule.rb', line 13 def loggable? true end |
#persist? ⇒ Boolean
16 17 18 |
# File 'lib/loghandler/rules/generic_log_rule.rb', line 16 def persist? false end |
#showable? ⇒ Boolean
19 20 21 |
# File 'lib/loghandler/rules/generic_log_rule.rb', line 19 def showable? true end |