class AuditLoggable::AuditRecordSet
Attributes
set[R]
Public Class Methods
new()
click to toggle source
# File lib/audit_loggable/audit_record_set.rb, line 9 def initialize clear end
Public Instance Methods
<<(audit_record)
click to toggle source
# File lib/audit_loggable/audit_record_set.rb, line 13 def <<(audit_record) set << audit_record self end
clear()
click to toggle source
# File lib/audit_loggable/audit_record_set.rb, line 18 def clear @set = [] self end
each(&block)
click to toggle source
# File lib/audit_loggable/audit_record_set.rb, line 23 def each(&block) return to_enum unless block set.each(&block) self end
flush()
click to toggle source
# File lib/audit_loggable/audit_record_set.rb, line 30 def flush ::AuditLoggable.logger.log(set) clear end