Class: Grape::Validations::SingleOptionValidator
- Defined in:
- lib/grape/validations.rb
Overview
Base class for all validators taking only one param.
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from Validator
Instance Method Summary collapse
-
#initialize(attrs, options, required, scope) ⇒ SingleOptionValidator
constructor
A new instance of SingleOptionValidator.
Methods inherited from Validator
convert_to_short_name, inherited, #validate!
Constructor Details
#initialize(attrs, options, required, scope) ⇒ SingleOptionValidator
Returns a new instance of SingleOptionValidator.
55 56 57 58 |
# File 'lib/grape/validations.rb', line 55 def initialize(attrs, , required, scope) @option = super end |