Class: Pastore::Params::BooleanValidation
- Inherits:
-
Validation
- Object
- Validation
- Pastore::Params::BooleanValidation
- Defined in:
- lib/pastore/params/validations/boolean_validation.rb
Overview
Implements the validation logic for object parameters.
Instance Attribute Summary
Attributes inherited from Validation
Instance Method Summary collapse
-
#initialize(name, value, modifier, **options) ⇒ BooleanValidation
constructor
A new instance of BooleanValidation.
Methods inherited from Validation
#add_error, #required?, #valid?, validate!
Constructor Details
#initialize(name, value, modifier, **options) ⇒ BooleanValidation
Returns a new instance of BooleanValidation.
7 8 9 |
# File 'lib/pastore/params/validations/boolean_validation.rb', line 7 def initialize(name, value, modifier, **) super(name, 'boolean', value, modifier, **) end |