Class: Plutonium::Wizard::State
- Inherits:
-
Struct
- Object
- Struct
- Plutonium::Wizard::State
- Defined in:
- lib/plutonium/wizard/state.rb
Overview
In-memory snapshot of one wizard instance's stored state, exchanged between the Store and the runner. Independent of any persistence backend.
data and persisted default to an empty hash, visited to an empty
array, so callers never have to nil-check them.
Instance Attribute Summary collapse
-
#anchor ⇒ Object
Returns the value of attribute anchor.
-
#current_step ⇒ Object
Returns the value of attribute current_step.
-
#data ⇒ Object
Returns the value of attribute data.
-
#engine ⇒ Object
Returns the value of attribute engine.
-
#instance_key ⇒ Object
Returns the value of attribute instance_key.
-
#lock_version ⇒ Object
Returns the value of attribute lock_version.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#persisted ⇒ Object
Returns the value of attribute persisted.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#status ⇒ Object
Returns the value of attribute status.
-
#token ⇒ Object
Returns the value of attribute token.
-
#visited ⇒ Object
Returns the value of attribute visited.
-
#wizard ⇒ Object
Returns the value of attribute wizard.
Instance Attribute Details
#anchor ⇒ Object
Returns the value of attribute anchor
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def anchor @anchor end |
#current_step ⇒ Object
Returns the value of attribute current_step
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def current_step @current_step end |
#data ⇒ Object
Returns the value of attribute data
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def data @data end |
#engine ⇒ Object
Returns the value of attribute engine
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def engine @engine end |
#instance_key ⇒ Object
Returns the value of attribute instance_key
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def instance_key @instance_key end |
#lock_version ⇒ Object
Returns the value of attribute lock_version
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def lock_version @lock_version end |
#owner ⇒ Object
Returns the value of attribute owner
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def owner @owner end |
#persisted ⇒ Object
Returns the value of attribute persisted
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def persisted @persisted end |
#scope ⇒ Object
Returns the value of attribute scope
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def scope @scope end |
#status ⇒ Object
Returns the value of attribute status
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def status @status end |
#token ⇒ Object
Returns the value of attribute token
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def token @token end |
#visited ⇒ Object
Returns the value of attribute visited
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def visited @visited end |
#wizard ⇒ Object
Returns the value of attribute wizard
10 11 12 |
# File 'lib/plutonium/wizard/state.rb', line 10 def wizard @wizard end |