Method: Propertyware::Payment#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
# File 'lib/propertyware/models/payment.rb', line 270

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      amount == o.amount &&
      comments == o.comments &&
      contact_id == o.contact_id &&
      created_by == o.created_by &&
      created_date_time == o.created_date_time &&
      date == o.date &&
      deposit_date == o.deposit_date &&
       == o. &&
      id == o.id &&
      is_deposited == o.is_deposited &&
      last_modified_by == o.last_modified_by &&
      last_modified_date_time == o.last_modified_date_time &&
      lease_id == o.lease_id &&
      payment_type == o.payment_type &&
      portfolio_id == o.portfolio_id &&
      ref_no == o.ref_no &&
      status == o.status
end