Method: PureCloud::PhoneBase#==

Defined in:
lib/purecloud/models/phone_base.rb

#==(o) ⇒ Object

Check equality by comparing each attribute.



209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
# File 'lib/purecloud/models/phone_base.rb', line 209

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      name == o.name &&
      description == o.description &&
      version == o.version &&
      date_created == o.date_created &&
      date_modified == o.date_modified &&
      modified_by == o.modified_by &&
      created_by == o.created_by &&
      state == o.state &&
      modified_by_app == o.modified_by_app &&
      created_by_app == o.created_by_app &&
      phone_meta_base == o.phone_meta_base &&
      lines == o.lines &&
      properties == o.properties &&
      capabilities == o.capabilities &&
      self_uri == o.self_uri
end