Method: FormAPI::Submission#list_invalid_properties
- Defined in:
- lib/form_api/models/submission.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 |
# File 'lib/form_api/models/submission.rb', line 178 def list_invalid_properties invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') end if @test.nil? invalid_properties.push('invalid value for "test", test cannot be nil.') end if @expired.nil? invalid_properties.push('invalid value for "expired", expired cannot be nil.') end if @state.nil? invalid_properties.push('invalid value for "state", state cannot be nil.') end invalid_properties end |