Method: GongAPI::GenericProperty#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



141
142
143
144
145
146
147
# File 'lib/gong_api/models/generic_property.rb', line 141

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      data_type == o.data_type &&
      name == o.name &&
      value == o.value
end