Method: Weblate::PatchedRole#hash

Defined in:
lib/weblate/models/patched_role.rb

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



144
145
146
# File 'lib/weblate/models/patched_role.rb', line 144

def hash
  [id, name, permissions, url].hash
end