Class: BreakerMachines::Event
- Inherits:
-
Data
- Object
- Data
- BreakerMachines::Event
- Defined in:
- lib/breaker_machines/types.rb
Overview
Represents an event in the circuit’s event log
Instance Attribute Summary collapse
-
#duration ⇒ Object
readonly
Returns the value of attribute duration.
-
#error ⇒ Object
readonly
Returns the value of attribute error.
-
#new_state ⇒ Object
readonly
Returns the value of attribute new_state.
-
#timestamp ⇒ Object
readonly
Returns the value of attribute timestamp.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Attribute Details
#duration ⇒ Object (readonly)
Returns the value of attribute duration
40 41 42 |
# File 'lib/breaker_machines/types.rb', line 40 def duration @duration end |
#error ⇒ Object (readonly)
Returns the value of attribute error
40 41 42 |
# File 'lib/breaker_machines/types.rb', line 40 def error @error end |
#new_state ⇒ Object (readonly)
Returns the value of attribute new_state
40 41 42 |
# File 'lib/breaker_machines/types.rb', line 40 def new_state @new_state end |
#timestamp ⇒ Object (readonly)
Returns the value of attribute timestamp
40 41 42 |
# File 'lib/breaker_machines/types.rb', line 40 def end |
#type ⇒ Object (readonly)
Returns the value of attribute type
40 41 42 |
# File 'lib/breaker_machines/types.rb', line 40 def type @type end |