Method: MoonlogsRuby::Tag#hash

Defined in:
lib/moonlogs-ruby/models/tag.rb

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



106
107
108
# File 'lib/moonlogs-ruby/models/tag.rb', line 106

def hash
  [id, name].hash
end