Class: Spoom::Coverage::Cards::Snapshot
- Extended by:
- T::Sig
- 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
Returns the value of attribute snapshot.
Attributes inherited from Card
Instance Method Summary collapse
-
#initialize(snapshot:, title: "Snapshot") ⇒ Snapshot
constructor
A new instance of Snapshot.
- #pie_calls ⇒ Object
- #pie_sigils ⇒ Object
- #pie_sigs ⇒ Object
Methods inherited from Template
Constructor Details
Instance Attribute Details
#snapshot ⇒ Object (readonly)
Returns the value of attribute snapshot.
129 130 131 |
# File 'lib/spoom/coverage/report.rb', line 129 def snapshot @snapshot end |
Instance Method Details
#pie_calls ⇒ Object
143 144 145 |
# File 'lib/spoom/coverage/report.rb', line 143 def pie_calls D3::Pie::Calls.new("pie_calls", "Calls", snapshot) end |