Method: FormAPI::AuthenticationError#valid?

Defined in:
lib/form_api/models/authentication_error.rb

#valid?Boolean

Check to see if the all the properties in the model are valid

Returns:

  • (Boolean)

    true if the model is valid



89
90
91
92
93
94
# File 'lib/form_api/models/authentication_error.rb', line 89

def valid?
  status_validator = EnumAttributeValidator.new('String', ['error'])
  return false unless status_validator.valid?(@status)
  return false if @error.nil?
  true
end