Class: BreakerMachines::Event

Inherits:
Data
  • Object
show all
Defined in:
lib/breaker_machines/types.rb

Overview

Represents an event in the circuit’s event log

Instance Attribute Summary collapse

Instance Attribute Details

#durationObject (readonly)

Returns the value of attribute duration



40
41
42
# File 'lib/breaker_machines/types.rb', line 40

def duration
  @duration
end

#errorObject (readonly)

Returns the value of attribute error



40
41
42
# File 'lib/breaker_machines/types.rb', line 40

def error
  @error
end

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

#timestampObject (readonly)

Returns the value of attribute timestamp



40
41
42
# File 'lib/breaker_machines/types.rb', line 40

def timestamp
  @timestamp
end

#typeObject (readonly)

Returns the value of attribute type



40
41
42
# File 'lib/breaker_machines/types.rb', line 40

def type
  @type
end