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(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

#operatorObject (readonly)

Returns the value of attribute operator.



183
184
185
# File 'lib/perseus_match.rb', line 183

def operator
  @operator
end

#pmObject (readonly)

Returns the value of attribute pm.



183
184
185
# File 'lib/perseus_match.rb', line 183

def pm
  @pm
end

#thresholdObject (readonly)

Returns the value of attribute threshold.



183
184
185
# File 'lib/perseus_match.rb', line 183

def threshold
  @threshold
end

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



189
190
191
# File 'lib/perseus_match.rb', line 189

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