Method: DocSpring::SubmissionBatchWithSubmissions#valid?

Defined in:
lib/docspring/models/submission_batch_with_submissions.rb

#valid?Boolean

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

Returns:

  • (Boolean)

    true if the model is valid



205
206
207
208
209
210
211
212
213
214
215
216
# File 'lib/docspring/models/submission_batch_with_submissions.rb', line 205

def valid?
  warn '[DEPRECATED] the `valid?` method is obsolete'
  return false if @state.nil?
  state_validator = EnumAttributeValidator.new('String', ["pending", "processed", "error"])
  return false unless state_validator.valid?(@state)
  return false if @metadata.nil?
  return false if @total_count.nil?
  return false if @pending_count.nil?
  return false if @error_count.nil?
  return false if @completion_percentage.nil?
  true
end