class Spoom::Coverage::D3::Pie::Calls
Public Class Methods
new(id, title, snapshot)
click to toggle source
Calls superclass method
Spoom::Coverage::D3::Pie::new
# File lib/spoom/coverage/d3/pie.rb, line 141 def initialize(id, title, snapshot) super(id, title, { true: snapshot.calls_typed, false: snapshot.calls_untyped }) end
Public Instance Methods
tooltip()
click to toggle source
# File lib/spoom/coverage/d3/pie.rb, line 146 def tooltip <<~JS function tooltip_#{id}(d) { tooltipPie(d, d.data.key == "true" ? " checked" : " unchecked", "calls", sum_#{id}) } JS end