Sha256: 958123aed0f674825830f21875ff81f7b2bb36f767e3cd10c77b71bbc4ab7273
Contents?: true
Size: 375 Bytes
Versions: 10
Compression:
Stored size: 375 Bytes
Contents
module AbPanel class Javascript def self.environment props = { distinct_id: AbPanel.env["distinct_id"] } props.merge!(AbPanel.properties) if AbPanel.properties AbPanel.funnels.each { |f| props["funnel_#{f}"] = true } AbPanel.experiments.each { |exp| props[exp] = AbPanel.conditions.send(exp).condition } props.to_json end end end
Version data entries
10 entries across 10 versions & 1 rubygems