Method: FormAPI::Error#valid?
- Defined in:
- lib/form_api/models/error.rb
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
93 94 95 96 97 98 99 |
# File 'lib/form_api/models/error.rb', line 93 def valid? return false if @status.nil? status_validator = EnumAttributeValidator.new('String', ['error']) return false unless status_validator.valid?(@status) return false if @error.nil? true end |