Method: PureCloud::Contact#==

Defined in:
lib/purecloud/models/contact.rb

#==(o) ⇒ Object

Check equality by comparing each attribute.



101
102
103
104
105
106
107
108
# File 'lib/purecloud/models/contact.rb', line 101

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      address == o.address &&
      display == o.display &&
      media_type == o.media_type &&
      type == o.type
end