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.
57 58 59 60 |
# File 'lib/phronomy.rb', line 57 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.
55 56 57 |
# File 'lib/phronomy.rb', line 55 def result @result end |