Method: FormAPI::CombinedSubmission#valid?

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

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



147
148
149
150
151
# File 'lib/form_api/models/combined_submission.rb', line 147

def valid?
  state_validator = EnumAttributeValidator.new('String', ['pending', 'processed', 'error'])
  return false unless state_validator.valid?(@state)
  true
end