Exception: Phronomy::LowConfidenceError

Inherits:
Error
  • Object
show all
Defined in:
lib/phronomy.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(result) ⇒ LowConfidenceError

Returns a new instance of LowConfidenceError.



63
64
65
66
# File 'lib/phronomy.rb', line 63

def initialize(result)
  @result = result
  super("Answer confidence #{result.confidence} is below the required threshold")
end

Instance Attribute Details

#resultObject (readonly)

Returns the value of attribute result.



61
62
63
# File 'lib/phronomy.rb', line 61

def result
  @result
end