Method: Propertyware::SaveContact#==

Defined in:
lib/propertyware/models/save_contact.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
# File 'lib/propertyware/models/save_contact.rb', line 571

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      address == o.address &&
      allow_e_signature == o.allow_e_signature &&
      alt_email == o.alt_email &&
      birth_date == o.birth_date &&
      category == o.category &&
      comments == o.comments &&
      company == o.company &&
      email == o.email &&
      fax == o.fax &&
      first_name == o.first_name &&
      gender == o.gender &&
      home_phone == o.home_phone &&
      job_title == o.job_title &&
      last_name == o.last_name &&
      middle_name == o.middle_name &&
      mobile_phone == o.mobile_phone &&
      name_on_check == o.name_on_check &&
      named_on_lease == o.named_on_lease &&
      other_phone == o.other_phone &&
      salutation == o.salutation &&
      search_tag == o.search_tag &&
      suffix == o.suffix &&
      work_phone == o.work_phone
end