Class: Spoom::Coverage::Cards::Snapshot
- Defined in:
- lib/spoom/coverage/report.rb
Constant Summary collapse
- TEMPLATE =
T.let("#{Spoom::SPOOM_PATH}/templates/card_snapshot.erb", String)
Instance Attribute Summary collapse
-
#snapshot ⇒ Object
readonly
: Coverage::Snapshot.
Attributes inherited from Card
Instance Method Summary collapse
-
#initialize(snapshot:, title: "Snapshot") ⇒ Snapshot
constructor
: (snapshot: Coverage::Snapshot, ?title: String) -> void.
-
#pie_calls ⇒ Object
: -> D3::Pie::Calls.
-
#pie_sigils ⇒ Object
: -> D3::Pie::Sigils.
-
#pie_sigs ⇒ Object
: -> D3::Pie::Sigs.
Methods inherited from Template
Constructor Details
Instance Attribute Details
#snapshot ⇒ Object (readonly)
: Coverage::Snapshot
126 127 128 |
# File 'lib/spoom/coverage/report.rb', line 126 def snapshot @snapshot end |
Instance Method Details
#pie_calls ⇒ Object
: -> D3::Pie::Calls
140 141 142 |
# File 'lib/spoom/coverage/report.rb', line 140 def pie_calls D3::Pie::Calls.new("pie_calls", "Calls", snapshot) end |