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.
-
#pm ⇒ Object
readonly
Returns the value of attribute pm.
-
#threshold ⇒ Object
readonly
Returns the value of attribute threshold.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(pm, value, threshold, operator) ⇒ CheckFailedError
constructor
A new instance of CheckFailedError.
- #to_s ⇒ Object
Constructor Details
#initialize(pm, value, threshold, operator) ⇒ CheckFailedError
Returns a new instance of CheckFailedError.
185 186 187 |
# File 'lib/perseus_match.rb', line 185 def initialize(pm, value, threshold, operator) @pm, @value, @threshold, @operator = pm, value, threshold, operator end |
Instance Attribute Details
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
183 184 185 |
# File 'lib/perseus_match.rb', line 183 def operator @operator end |
#pm ⇒ Object (readonly)
Returns the value of attribute pm.
183 184 185 |
# File 'lib/perseus_match.rb', line 183 def pm @pm end |
#threshold ⇒ Object (readonly)
Returns the value of attribute threshold.
183 184 185 |
# File 'lib/perseus_match.rb', line 183 def threshold @threshold end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
183 184 185 |
# File 'lib/perseus_match.rb', line 183 def value @value end |
Instance Method Details
#to_s ⇒ Object
189 190 191 |
# File 'lib/perseus_match.rb', line 189 def to_s "FAILED: #{value} #{operator} #{threshold}" end |