Method: ElasticEmail::NewApiKey#hash

Defined in:
lib/ElasticEmail/models/new_api_key.rb

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



164
165
166
# File 'lib/ElasticEmail/models/new_api_key.rb', line 164

def hash
  [token, access_level, name, date_created, last_use, expires, restrict_access_to_ip_range].hash
end