Method: DocSpring::SubmissionBatchWithSubmissions#list_invalid_properties
- Defined in:
- lib/docspring/models/submission_batch_with_submissions.rb
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 |
# File 'lib/docspring/models/submission_batch_with_submissions.rb', line 173 def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @state.nil? invalid_properties.push('invalid value for "state", state cannot be nil.') end if @metadata.nil? invalid_properties.push('invalid value for "metadata", metadata cannot be nil.') end if @total_count.nil? invalid_properties.push('invalid value for "total_count", total_count cannot be nil.') end if @pending_count.nil? invalid_properties.push('invalid value for "pending_count", pending_count cannot be nil.') end if @error_count.nil? invalid_properties.push('invalid value for "error_count", error_count cannot be nil.') end if @completion_percentage.nil? invalid_properties.push('invalid value for "completion_percentage", completion_percentage cannot be nil.') end invalid_properties end |