Method: Propertyware::Income#==

Defined in:
lib/propertyware/models/income.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/propertyware/models/income.rb', line 154

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
       == o. &&
       == o. &&
       == o. &&
      exclude_from1099 == o.exclude_from1099 &&
      exclude_from_pay_in_full == o.exclude_from_pay_in_full &&
      exclude_late_fee == o.exclude_late_fee &&
       == o. &&
      section8 == o.section8 &&
       == o.
end