Method: GongAPI::ExternalPartyObject#==

Defined in:
lib/gong_api/models/external_party_object.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



150
151
152
153
154
155
156
157
# File 'lib/gong_api/models/external_party_object.rb', line 150

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      fields == o.fields &&
      object_id == o.object_id &&
      object_type == o.object_type &&
      timing == o.timing
end