Exception: PerseusMatch::CheckFailedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/perseus_match.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#operatorObject (readonly)

Returns the value of attribute operator.



157
158
159
# File 'lib/perseus_match.rb', line 157

def operator
  @operator
end

#thresholdObject (readonly)

Returns the value of attribute threshold.



157
158
159
# File 'lib/perseus_match.rb', line 157

def threshold
  @threshold
end

#valueObject (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_sObject



163
164
165
# File 'lib/perseus_match.rb', line 163

def to_s
  "FAILED: #{value} #{operator} #{threshold}"
end