class Spoom::Coverage::Cards::Snapshot

Constants

TEMPLATE

Attributes

snapshot[R]

Public Class Methods

new(snapshot:, title: "Snapshot") click to toggle source
Calls superclass method Spoom::Coverage::Cards::Card::new
# File lib/spoom/coverage/report.rb, line 132
def initialize(snapshot:, title: "Snapshot")
  super(template: TEMPLATE, title: title)
  @snapshot = snapshot
end

Public Instance Methods

pie_calls() click to toggle source
# File lib/spoom/coverage/report.rb, line 143
def pie_calls
  D3::Pie::Calls.new('pie_calls', 'Calls', snapshot)
end
pie_sigils() click to toggle source
# File lib/spoom/coverage/report.rb, line 138
def pie_sigils
  D3::Pie::Sigils.new('pie_sigils', 'Sigils', snapshot)
end
pie_sigs() click to toggle source
# File lib/spoom/coverage/report.rb, line 148
def pie_sigs
  D3::Pie::Sigs.new('pie_sigs', 'Sigs', snapshot)
end