Method: TripletexRubyClient::Contact#==

Defined in:
lib/tripletex_ruby_client/models/contact.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
# File 'lib/tripletex_ruby_client/models/contact.rb', line 254

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      version == o.version &&
      changes == o.changes &&
      url == o.url &&
      first_name == o.first_name &&
      last_name == o.last_name &&
      email == o.email &&
      phone_number_mobile_country == o.phone_number_mobile_country &&
      phone_number_mobile == o.phone_number_mobile &&
      phone_number_work == o.phone_number_work &&
      customer == o.customer &&
      department == o.department
end