Exception: Statefully::State::Missing

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/statefully/state.rb

Overview

class Failure

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(field) ⇒ Missing

Returns a new instance of Missing.



132
133
134
135
# File 'lib/statefully/state.rb', line 132

def initialize(field)
  @field = field
  super("field '#{field}' missing from state")
end

Instance Attribute Details

#fieldObject (readonly)

Returns the value of attribute field.



130
131
132
# File 'lib/statefully/state.rb', line 130

def field
  @field
end