Method: TalonOne::Attribute#hash

Defined in:
lib/talon_one/models/attribute.rb

#hashInteger

Calculates hash code according to all attributes.

Returns:

  • (Integer)

    Hash code



398
399
400
# File 'lib/talon_one/models/attribute.rb', line 398

def hash
  [id, created, , entity, event_type, name, title, type, description, suggestions, has_allowed_list, restricted_by_suggestions, editable, subscribed_applications_ids, subscribed_catalogs_ids, allowed_subscriptions, event_type_id].hash
end