Method: ForestVPNCloudAPI::Project#==

Defined in:
lib/forestvpn_cloud_api/models/project.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



113
114
115
116
117
118
119
# File 'lib/forestvpn_cloud_api/models/project.rb', line 113

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      id == o.id &&
      slug == o.slug &&
      name == o.name
end