Class: Services::Validators::Likelihood
- Inherits:
-
Object
- Object
- Services::Validators::Likelihood
- Defined in:
- lib/services/validators/likelihood.rb
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(response, threshold) ⇒ Likelihood
constructor
A new instance of Likelihood.
Constructor Details
#initialize(response, threshold) ⇒ Likelihood
Returns a new instance of Likelihood.
16 17 18 |
# File 'lib/services/validators/likelihood.rb', line 16 def initialize(response, threshold) @response, @threshold = response, threshold end |
Instance Method Details
#call ⇒ Object
20 21 22 |
# File 'lib/services/validators/likelihood.rb', line 20 def call value_for(@response) > value_for(@threshold) end |