Class: EventTracer::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/event_tracer.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeResult

Returns a new instance of Result.



77
78
79
# File 'lib/event_tracer.rb', line 77

def initialize
  @records = {}
end

Instance Attribute Details

#recordsObject (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