Method: WebApiActivequerybuilder::Totals#==

Defined in:
lib/webapi-active-query-builder/models/totals.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



118
119
120
121
122
123
# File 'lib/webapi-active-query-builder/models/totals.rb', line 118

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      field == o.field &&
      aggregate == o.aggregate
end