Class: CheekyDreams::ForwardingAuditor

Inherits:
Object
  • Object
show all
Defined in:
lib/cheeky-dreams.rb

Instance Method Summary collapse

Constructor Details

#initialize(rules) ⇒ ForwardingAuditor

Returns a new instance of ForwardingAuditor.



52
53
54
# File 'lib/cheeky-dreams.rb', line 52

def initialize rules
  @rules = rules
end

Instance Method Details

#audit(type, message) ⇒ Object



56
57
58
# File 'lib/cheeky-dreams.rb', line 56

def audit type, message
  @rules[type].audit(type, message) if @rules.has_key?(type)
end