Class: Plutonium::Wizard::State

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#anchorObject

Returns the value of attribute anchor

Returns:

  • (Object)

    the current value of anchor



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def anchor
  @anchor
end

#current_stepObject

Returns the value of attribute current_step

Returns:

  • (Object)

    the current value of current_step



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def current_step
  @current_step
end

#dataObject

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def data
  @data
end

#engineObject

Returns the value of attribute engine

Returns:

  • (Object)

    the current value of engine



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def engine
  @engine
end

#instance_keyObject

Returns the value of attribute instance_key

Returns:

  • (Object)

    the current value of instance_key



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def instance_key
  @instance_key
end

#lock_versionObject

Returns the value of attribute lock_version

Returns:

  • (Object)

    the current value of lock_version



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def lock_version
  @lock_version
end

#ownerObject

Returns the value of attribute owner

Returns:

  • (Object)

    the current value of owner



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def owner
  @owner
end

#persistedObject

Returns the value of attribute persisted

Returns:

  • (Object)

    the current value of persisted



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def persisted
  @persisted
end

#scopeObject

Returns the value of attribute scope

Returns:

  • (Object)

    the current value of scope



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def scope
  @scope
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def status
  @status
end

#tokenObject

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def token
  @token
end

#visitedObject

Returns the value of attribute visited

Returns:

  • (Object)

    the current value of visited



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def visited
  @visited
end

#wizardObject

Returns the value of attribute wizard

Returns:

  • (Object)

    the current value of wizard



10
11
12
# File 'lib/plutonium/wizard/state.rb', line 10

def wizard
  @wizard
end