Class: RequestType::Validator::NullValidator

Inherits:
Object
  • Object
show all
Defined in:
app/models/request_type/validator.rb

Overview

A NullValidator is used if no specific validator is provided. It accepts everything

Instance Method Summary collapse

Instance Method Details

#defaultObject



98
99
100
# File 'app/models/request_type/validator.rb', line 98

def default
  nil
end

#valid_optionsObject



102
103
104
# File 'app/models/request_type/validator.rb', line 102

def valid_options
  []
end

#validate?(_value) ⇒ Boolean

Returns:

  • (Boolean)


94
95
96
# File 'app/models/request_type/validator.rb', line 94

def validate?(_value)
  true
end