Class: Katello::Apipie::Validators::UndefValidator

Inherits:
Apipie::Validator::BaseValidator
  • Object
show all
Defined in:
lib/katello/apipie/validators.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.build(param_description, argument, _options, _block) ⇒ Object



21
22
23
24
25
# File 'lib/katello/apipie/validators.rb', line 21

def self.build(param_description, argument, _options, _block)
  if argument == :undef
    self.new(param_description)
  end
end

Instance Method Details

#descriptionObject



27
28
29
# File 'lib/katello/apipie/validators.rb', line 27

def description
  nil
end

#validate(_value) ⇒ Object



17
18
19
# File 'lib/katello/apipie/validators.rb', line 17

def validate(_value)
  true
end