Class: Apipie::Validator::UndefValidator
- Inherits:
-
BaseValidator
- Object
- BaseValidator
- Apipie::Validator::UndefValidator
- Defined in:
- lib/apipie/validator.rb
Overview
special type of validator: we say that it’s not specified
Instance Attribute Summary
Attributes inherited from BaseValidator
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from BaseValidator
#==, #error, #expected_type, find, #format_description_value, #ignore_allow_blank?, inherited, #initialize, #inspect, #inspected_fields, #merge_with, #param_name, #params_ordered, raise_if_missing_params, #to_json, #to_s, #valid?
Constructor Details
This class inherits a constructor from Apipie::Validator::BaseValidator
Class Method Details
.build(param_description, argument, options, block) ⇒ Object
421 422 423 424 425 |
# File 'lib/apipie/validator.rb', line 421 def self.build(param_description, argument, , block) if argument == :undef self.new(param_description) end end |
Instance Method Details
#description ⇒ Object
427 428 429 |
# File 'lib/apipie/validator.rb', line 427 def description nil end |
#validate(value) ⇒ Object
417 418 419 |
# File 'lib/apipie/validator.rb', line 417 def validate(value) true end |