Exception: PerseusMatch::CheckFailedError
- Inherits:
-
StandardError
- Object
- StandardError
- PerseusMatch::CheckFailedError
- Defined in:
- lib/perseus_match.rb
Instance Attribute Summary collapse
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
-
#threshold ⇒ Object
readonly
Returns the value of attribute threshold.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, threshold, operator) ⇒ CheckFailedError
constructor
A new instance of CheckFailedError.
- #to_s ⇒ Object
Constructor Details
#initialize(value, threshold, operator) ⇒ CheckFailedError
Returns a new instance of CheckFailedError.
159 160 161 |
# File 'lib/perseus_match.rb', line 159 def initialize(value, threshold, operator) @value, @threshold, @operator = value, threshold, operator end |
Instance Attribute Details
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
157 158 159 |
# File 'lib/perseus_match.rb', line 157 def operator @operator end |
#threshold ⇒ Object (readonly)
Returns the value of attribute threshold.
157 158 159 |
# File 'lib/perseus_match.rb', line 157 def threshold @threshold end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
157 158 159 |
# File 'lib/perseus_match.rb', line 157 def value @value end |
Instance Method Details
#to_s ⇒ Object
163 164 165 |
# File 'lib/perseus_match.rb', line 163 def to_s "FAILED: #{value} #{operator} #{threshold}" end |