Class: Stoplight::Infrastructure::Memory::DataStore::State

Inherits:
Object
  • Object
show all
Defined in:
lib/stoplight/infrastructure/memory/data_store/state.rb,
sig/_private/stoplight/infrastructure/memory/data_store/state.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeState

Returns a new instance of State.



14
15
16
# File 'lib/stoplight/infrastructure/memory/data_store/state.rb', line 14

def initialize
  @locked_state = Stoplight::State::UNLOCKED
end

Instance Attribute Details

#breached_atTime?

Returns the value of attribute breached_at.

Returns:

  • (Time, nil)


12
13
14
# File 'lib/stoplight/infrastructure/memory/data_store/state.rb', line 12

def breached_at
  @breached_at
end

#locked_statestate

Returns the value of attribute locked_state.

Returns:

  • (state)


9
10
11
# File 'lib/stoplight/infrastructure/memory/data_store/state.rb', line 9

def locked_state
  @locked_state
end

#recovered_atTime?

Returns the value of attribute recovered_at.

Returns:

  • (Time, nil)


8
9
10
# File 'lib/stoplight/infrastructure/memory/data_store/state.rb', line 8

def recovered_at
  @recovered_at
end

#recovery_scheduled_afterTime?

Returns the value of attribute recovery_scheduled_after.

Returns:

  • (Time, nil)


10
11
12
# File 'lib/stoplight/infrastructure/memory/data_store/state.rb', line 10

def recovery_scheduled_after
  @recovery_scheduled_after
end

#recovery_started_atTime?

Returns the value of attribute recovery_started_at.

Returns:

  • (Time, nil)


11
12
13
# File 'lib/stoplight/infrastructure/memory/data_store/state.rb', line 11

def recovery_started_at
  @recovery_started_at
end