Exception: Scientist::NoValue
- Inherits:
-
StandardError
- Object
- StandardError
- Scientist::NoValue
- Defined in:
- lib/scientist/errors.rb
Instance Attribute Summary collapse
-
#observation ⇒ Object
readonly
Returns the value of attribute observation.
Instance Method Summary collapse
-
#initialize(observation) ⇒ NoValue
constructor
A new instance of NoValue.
Constructor Details
#initialize(observation) ⇒ NoValue
Returns a new instance of NoValue.
33 34 35 36 |
# File 'lib/scientist/errors.rb', line 33 def initialize(observation) @observation = observation super "#{observation.name} didn't return a value" end |
Instance Attribute Details
#observation ⇒ Object (readonly)
Returns the value of attribute observation.
31 32 33 |
# File 'lib/scientist/errors.rb', line 31 def observation @observation end |