Method: Propertyware::Inspection#==

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

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



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

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      building_id == o.building_id &&
      closed_date_and_time == o.closed_date_and_time &&
      comment == o.comment &&
      created_by == o.created_by &&
      created_date_time == o.created_date_time &&
      id == o.id &&
      inspected_date_and_time == o.inspected_date_and_time &&
      inspection_areas == o.inspection_areas &&
      inspector_id == o.inspector_id &&
      last_modified_by == o.last_modified_by &&
      last_modified_date_time == o.last_modified_date_time &&
      lease_id == o.lease_id &&
      notes_to_inspector == o.notes_to_inspector &&
      number == o.number &&
      portfolio_id == o.portfolio_id &&
      scheduled_date_and_time == o.scheduled_date_and_time &&
      status == o.status &&
      template_name == o.template_name &&
      type == o.type
end