Class: Loghandler::Rules::GenericLogRule

Inherits:
AbstractRule show all
Defined in:
lib/loghandler/rules/generic_log_rule.rb

Instance Method Summary collapse

Methods inherited from AbstractRule

#match?

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

#logObject



10
11
12
# File 'lib/loghandler/rules/generic_log_rule.rb', line 10

def log
 @log_detail.to_json
end

#loggable?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/loghandler/rules/generic_log_rule.rb', line 13

def loggable?
  true
end

#persist?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/loghandler/rules/generic_log_rule.rb', line 16

def persist?
  false
end

#showable?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/loghandler/rules/generic_log_rule.rb', line 19

def showable?
  true
end