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

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

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_atObject

Returns the value of attribute breached_at.



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

def breached_at
  @breached_at
end

#locked_stateObject

Returns the value of attribute locked_state.



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

def locked_state
  @locked_state
end

#recovered_atObject

Returns the value of attribute recovered_at.



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

def recovered_at
  @recovered_at
end

#recovery_scheduled_afterObject

Returns the value of attribute recovery_scheduled_after.



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

def recovery_scheduled_after
  @recovery_scheduled_after
end

#recovery_started_atObject

Returns the value of attribute recovery_started_at.



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

def recovery_started_at
  @recovery_started_at
end