Sha256: 59a09653320722a6d1ad0ce51e45e30eb0b9700a5ba8f04c95cff27ba2e7b46e
Contents?: true
Size: 360 Bytes
Versions: 1
Compression:
Stored size: 360 Bytes
Contents
module AbPanel class Javascript def self.environment props = { distinct_id: AbPanel.env["distinct_id"] }.merge(AbPanel.env[: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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ab_panel-0.1.2 | lib/ab_panel/javascript.rb |