Class: BreakerMachines::Status

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

Overview

Represents the status of a circuit from storage

Returns:

  • (Symbol)

    status - the circuit status (:open, :closed, :half_open)

  • (Float, nil)

    opened_at - the monotonic time when the circuit was opened

Instance Attribute Summary collapse

Instance Attribute Details

#opened_atObject (readonly)

Returns the value of attribute opened_at

Returns:

  • (Object)

    the current value of opened_at



7
8
9
# File 'lib/breaker_machines/types.rb', line 7

def opened_at
  @opened_at
end

#statusObject (readonly)

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



7
8
9
# File 'lib/breaker_machines/types.rb', line 7

def status
  @status
end