Method: XeroRuby::Accounting::HistoryRecords#==

Defined in:
lib/xero-ruby/models/accounting/history_records.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



73
74
75
76
77
# File 'lib/xero-ruby/models/accounting/history_records.rb', line 73

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