import Foundation public enum AnalyticsEvent { <%- for @event in @events -%> case <%= @event.name %> <%- end -%> public var name: String { switch self { <%- for @event in @events -%> case .<%= @event.name %>: return "<%= @event.name %>" <%- end -%> } } }