Class: Phoenx::ConfigurationValidator
- Inherits:
-
Object
- Object
- Phoenx::ConfigurationValidator
- Defined in:
- lib/phoenx/validators/configuration_validator.rb
Constant Summary collapse
- ERROR_NONE =
0
- ERROR_INVALID_NAME =
1
Instance Method Summary collapse
Instance Method Details
#validate(configuration) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/phoenx/validators/configuration_validator.rb', line 8 def validate(configuration) if configuration.name == nil || configuration.name == "" return ERROR_INVALID_NAME end return ERROR_NONE end |