Method: FormAPI::SubmissionBatch#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



161
162
163
164
165
166
167
168
169
170
171
172
173
# File 'lib/form_api/models/submission_batch.rb', line 161

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      pending_count == o.pending_count &&
      completion_percentage == o.completion_percentage &&
       == o. &&
      total_count == o.total_count &&
      submissions == o.submissions &&
      processed_at == o.processed_at &&
      id == o.id &&
      state == o.state &&
      error_count == o.error_count
end