Sha256: a920d5a17f34b4e4d580869e39d6c7bdf9f7df5a0a4ea0ada6822847feffd2bf

Contents?: true

Size: 317 Bytes

Versions: 7

Compression:

Stored size: 317 Bytes

Contents

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 -%>
        }
    }
}

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ai_tagger-0.4.2 lib/templates/AnalyticsEvent.swift.erb
ai_tagger-0.4.1 lib/templates/AnalyticsEvent.swift.erb
ai_tagger-0.4.0 lib/templates/AnalyticsEvent.swift.erb
ai_tagger-0.3.1 lib/templates/AnalyticsEvent.swift.erb
ai_tagger-0.3.0 lib/templates/AnalyticsEvent.swift.erb
ai_tagger-0.2.1 lib/templates/AnalyticsEvent.swift.erb
ai_tagger-0.2.0 lib/templates/AnalyticsEvent.swift.erb