Method: XeroRuby::PayrollNz::Superannuations#==

Defined in:
lib/xero-ruby/models/payroll_nz/superannuations.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



91
92
93
94
95
96
97
# File 'lib/xero-ruby/models/payroll_nz/superannuations.rb', line 91

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      pagination == o.pagination &&
      problem == o.problem &&
      benefits == o.benefits
end