Exception: Scientist::NoValue

Inherits:
StandardError
  • Object
show all
Defined in:
lib/scientist/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#observationObject (readonly)

Returns the value of attribute observation.



31
32
33
# File 'lib/scientist/errors.rb', line 31

def observation
  @observation
end