class SoarAnalytics::Reporter
Public Class Methods
new(name)
click to toggle source
# File lib/soar_analytics/reporter.rb, line 5 def initialize(name) @name = name end
Public Instance Methods
report(value, audit_level = :info, flow_identifier = nil)
click to toggle source
# File lib/soar_analytics/reporter.rb, line 9 def report(value, audit_level = :info, flow_identifier = nil) SoarAnalytics.auditing.send(audit_level,format_key_value_pair(value),flow_identifier) end
Private Instance Methods
format_key_value_pair(value)
click to toggle source
# File lib/soar_analytics/reporter.rb, line 15 def format_key_value_pair(value) SoarAuditingFormatter::Formatter.optional_field_format(@name,value) end