class TrailGuide::Metrics::Checkpoint
represents a checkpoint in a funnel TODO this is mostly a placeholder for now
Attributes
experiment[R]
name[R]
Public Class Methods
new(experiment, name, checkpoints=[])
click to toggle source
# File lib/trail_guide/metrics/checkpoint.rb, line 12 def initialize(experiment, name, checkpoints=[]) @experiment = experiment @name = name.to_s.underscore.to_sym end
Public Instance Methods
as_json(opts={})
click to toggle source
# File lib/trail_guide/metrics/checkpoint.rb, line 17 def as_json(opts={}) { name: name, } end
dup(experiment)
click to toggle source
# File lib/trail_guide/metrics/checkpoint.rb, line 8 def dup(experiment) self.class.new(experiment, name) end