Method: Phrase::Tag#hash

Defined in:
lib/phrase/models/tag.rb

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



103
104
105
# File 'lib/phrase/models/tag.rb', line 103

def hash
  [name, keys_count, created_at, updated_at].hash
end