Class: EventTracer::Result
- Inherits:
-
Object
- Object
- EventTracer::Result
- Defined in:
- lib/event_tracer.rb
Instance Attribute Summary collapse
-
#records ⇒ Object
readonly
Returns the value of attribute records.
Instance Method Summary collapse
-
#initialize ⇒ Result
constructor
A new instance of Result.
- #record(logger_code, outcome) ⇒ Object
Constructor Details
#initialize ⇒ Result
Returns a new instance of Result.
77 78 79 |
# File 'lib/event_tracer.rb', line 77 def initialize @records = {} end |
Instance Attribute Details
#records ⇒ Object (readonly)
Returns the value of attribute records.
75 76 77 |
# File 'lib/event_tracer.rb', line 75 def records @records end |
Instance Method Details
#record(logger_code, outcome) ⇒ Object
81 82 83 |
# File 'lib/event_tracer.rb', line 81 def record(logger_code, outcome) records[logger_code] = outcome end |