Method: Forgejo::TagProtection#hash

Defined in:
lib/forgejo/models/tag_protection.rb

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



152
153
154
# File 'lib/forgejo/models/tag_protection.rb', line 152

def hash
  [created_at, id, name_pattern, updated_at, whitelist_teams, whitelist_usernames].hash
end