Method: XeroRuby::PayrollUk::LeaveTypes#==

Defined in:
lib/xero-ruby/models/payroll_uk/leave_types.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_uk/leave_types.rb', line 91

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