Method: DocSpring::SubmissionDataRequest#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
# File 'lib/docspring/models/submission_data_request.rb', line 298

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      name == o.name &&
      email == o.email &&
      order == o.order &&
      sort_order == o.sort_order &&
      fields == o.fields &&
       == o. &&
      state == o.state &&
      viewed_at == o.viewed_at &&
      completed_at == o.completed_at &&
      auth_type == o.auth_type &&
      auth_second_factor_type == o.auth_second_factor_type &&
      auth_provider == o.auth_provider &&
      auth_session_started_at == o.auth_session_started_at &&
      auth_session_id_hash == o.auth_session_id_hash &&
      auth_user_id_hash == o.auth_user_id_hash &&
      auth_username_hash == o.auth_username_hash &&
      auth_phone_number_hash == o.auth_phone_number_hash &&
      ip_address == o.ip_address &&
      user_agent == o.user_agent
end