Method: Propertyware::OwnerDraw#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
# File 'lib/propertyware/models/owner_draw.rb', line 248

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 &&
       == o. &&
       == o. &&
      id == o.id &&
      last_modified_by == o.last_modified_by &&
      last_modified_date_time == o.last_modified_date_time &&
      payment_type == o.payment_type &&
      portfolio_id == o.portfolio_id &&
      ref_no == o.ref_no
end