class Spoom::Coverage::D3::Timeline::Sigs
def initialize(id, snapshots)
def initialize(id, snapshots) keys = ["false", "true"] data = snapshots.map do |snapshot| { timestamp: snapshot.commit_timestamp, commit: snapshot.commit_sha, total: snapshot.methods_with_sig_excluding_rbis + snapshot.methods_without_sig_excluding_rbis, values: { true: snapshot.methods_with_sig_excluding_rbis, false: snapshot.methods_without_sig_excluding_rbis, }, } end super(id, data, keys) end
def tooltip
def tooltip <<~JS function tooltip_#{id}(d) { tooltipTimeline(d, "methods excluding RBIs"); } JS end