# frozen_string_literal: true # Defines the standard statistics data model. module StatConcern extend ActiveSupport::Concern included do attribute :type, String attribute :subType, String attribute :date, String attribute :stat, Float attribute :userId, Integer attribute :gender, String attribute :age, Integer attribute :group, String # has include Elasticsearch::Persistence::Model index_name 'stats' document_type to_s.demodulize&.underscore end end