Method: FlatApi::ResourceRights#==

Defined in:
lib/flat_api/models/resource_rights.rb

#==(o) ⇒ Object

Checks equality by comparing each attribute.

Parameters:

  • Object (Object)

    to be compared



89
90
91
92
93
94
95
# File 'lib/flat_api/models/resource_rights.rb', line 89

def ==(o)
  return true if self.equal?(o)
  self.class == o.class &&
      acl_read == o.acl_read &&
      acl_write == o.acl_write &&
      acl_admin == o.acl_admin
end