Class: TDL::AuditStream
- Inherits:
-
Object
- Object
- TDL::AuditStream
- Defined in:
- lib/tdl/client.rb
Overview
~~~~ Utils
Instance Method Summary collapse
- #end_line ⇒ Object
-
#initialize ⇒ AuditStream
constructor
A new instance of AuditStream.
- #log(auditable) ⇒ Object
- #start_line ⇒ Object
Constructor Details
#initialize ⇒ AuditStream
Returns a new instance of AuditStream.
74 75 76 77 |
# File 'lib/tdl/client.rb', line 74 def initialize @logger = Logging.logger[self] start_line end |
Instance Method Details
#end_line ⇒ Object
92 93 94 |
# File 'lib/tdl/client.rb', line 92 def end_line @logger.info @str end |
#log(auditable) ⇒ Object
83 84 85 86 87 88 89 90 |
# File 'lib/tdl/client.rb', line 83 def log(auditable) text = auditable.audit_text if not text.empty? and @str.length > 0 @str << ', ' end @str << text end |
#start_line ⇒ Object
79 80 81 |
# File 'lib/tdl/client.rb', line 79 def start_line @str = '' end |