Class: Services::Validators::Likelihood

Inherits:
Object
  • Object
show all
Defined in:
lib/services/validators/likelihood.rb

Instance Method Summary collapse

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

#callObject



20
21
22
# File 'lib/services/validators/likelihood.rb', line 20

def call
  value_for(@response) > value_for(@threshold)
end