Sha256: 1d64c081a56839b9528ee69d03de807cef2f78a6c8a21bd85c34c378169a777e
Contents?: true
Size: 673 Bytes
Versions: 2
Compression:
Stored size: 673 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 -%> } } public var firebase: Bool { switch self { <%- for @event in @events -%> case .<%= @event.name %>: return <%= @event.firebase %> <%- end -%> } } public var appsflyer: Bool { switch self { <%- for @event in @events -%> case .<%= @event.name %>: return <%= @event.appsflyer %> <%- end -%> } } }
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ai_tagger-0.4.4 | lib/templates/AnalyticsEvent.swift.erb |
ai_tagger-0.4.3 | lib/templates/AnalyticsEvent.swift.erb |