Exception: Mathpix::LowConfidenceError
- Defined in:
- lib/mathpix/errors.rb
Overview
Low confidence error
Instance Attribute Summary collapse
-
#confidence ⇒ Object
readonly
Returns the value of attribute confidence.
-
#suggestions ⇒ Object
readonly
Returns the value of attribute suggestions.
Attributes inherited from Error
Instance Method Summary collapse
-
#initialize(message, confidence: nil, suggestions: []) ⇒ LowConfidenceError
constructor
A new instance of LowConfidenceError.
Constructor Details
#initialize(message, confidence: nil, suggestions: []) ⇒ LowConfidenceError
Returns a new instance of LowConfidenceError.
48 49 50 51 52 |
# File 'lib/mathpix/errors.rb', line 48 def initialize(, confidence: nil, suggestions: []) super() @confidence = confidence @suggestions = suggestions end |
Instance Attribute Details
#confidence ⇒ Object (readonly)
Returns the value of attribute confidence.
46 47 48 |
# File 'lib/mathpix/errors.rb', line 46 def confidence @confidence end |
#suggestions ⇒ Object (readonly)
Returns the value of attribute suggestions.
46 47 48 |
# File 'lib/mathpix/errors.rb', line 46 def suggestions @suggestions end |