Method: Propertyware::Refund#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
# File 'lib/propertyware/models/refund.rb', line 209

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      amount == o.amount &&
      created_by == o.created_by &&
      created_date_time == o.created_date_time &&
      date == o.date &&
       == o. &&
       == o. &&
      id == o.id &&
      last_modified_by == o.last_modified_by &&
      last_modified_date_time == o.last_modified_date_time &&
      lease_id == o.lease_id &&
      payee_payer == o.payee_payer &&
      portfolio_id == o.portfolio_id &&
      ref_no == o.ref_no &&
      to_be_printed == o.to_be_printed
end