Exception: Phronomy::LowConfidenceError
- Defined in:
- lib/phronomy.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(result) ⇒ LowConfidenceError
constructor
A new instance of LowConfidenceError.
Constructor Details
#initialize(result) ⇒ LowConfidenceError
Returns a new instance of LowConfidenceError.
48 49 50 51 |
# File 'lib/phronomy.rb', line 48 def initialize(result) @result = result super("Answer confidence #{result.confidence} is below the required threshold") end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
46 47 48 |
# File 'lib/phronomy.rb', line 46 def result @result end |