Class: HaveAPI::Client::Validators::Exclusion
- Inherits:
-
HaveAPI::Client::Validator
- Object
- HaveAPI::Client::Validator
- HaveAPI::Client::Validators::Exclusion
- Defined in:
- lib/haveapi/client/validators/exclusion.rb
Instance Attribute Summary
Attributes inherited from HaveAPI::Client::Validator
Instance Method Summary collapse
Methods inherited from HaveAPI::Client::Validator
#errors, #initialize, name, register, validate
Constructor Details
This class inherits a constructor from HaveAPI::Client::Validator
Instance Method Details
#valid? ⇒ Boolean
7 8 9 |
# File 'lib/haveapi/client/validators/exclusion.rb', line 7 def valid? !opts[:values].include?(value) end |