Method: Kickflow::Ticket#==

Defined in:
lib/kickflow/models/ticket.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
# File 'lib/kickflow/models/ticket.rb', line 392

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      ticket_number == o.ticket_number &&
      title == o.title &&
      status == o.status &&
      sub_status == o.sub_status &&
      current_step == o.current_step &&
      author == o.author &&
      proxy_client_user == o.proxy_client_user &&
      created_at == o.created_at &&
      opened_at == o.opened_at &&
      completed_at == o.completed_at &&
      archived_at == o.archived_at &&
      updated_at == o.updated_at &&
      public_status == o.public_status &&
      forced_public_type == o.forced_public_type &&
      workflow == o.workflow &&
      labels == o.labels
end