Class: Spoom::Coverage::Cards::Snapshot
- Defined in:
- lib/spoom/coverage/report.rb
Constant Summary collapse
- TEMPLATE =
: String
"#{Spoom::SPOOM_PATH}/templates/card_snapshot.erb"
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
#initialize(snapshot:, title: "Snapshot") ⇒ Snapshot
: (snapshot: Coverage::Snapshot, ?title: String) -> void
119 120 121 122 |
# File 'lib/spoom/coverage/report.rb', line 119 def initialize(snapshot:, title: "Snapshot") super(template: TEMPLATE, title: title) @snapshot = snapshot end |
Instance Attribute Details
#snapshot ⇒ Object (readonly)
: Coverage::Snapshot
116 117 118 |
# File 'lib/spoom/coverage/report.rb', line 116 def snapshot @snapshot end |
Instance Method Details
#pie_calls ⇒ Object
: -> D3::Pie::Calls
130 131 132 |
# File 'lib/spoom/coverage/report.rb', line 130 def pie_calls D3::Pie::Calls.new("pie_calls", "Calls", snapshot) end |
#pie_sigils ⇒ Object
: -> D3::Pie::Sigils
125 126 127 |
# File 'lib/spoom/coverage/report.rb', line 125 def pie_sigils D3::Pie::Sigils.new("pie_sigils", "Sigils", snapshot) end |
#pie_sigs ⇒ Object
: -> D3::Pie::Sigs
135 136 137 |
# File 'lib/spoom/coverage/report.rb', line 135 def pie_sigs D3::Pie::Sigs.new("pie_sigs", "Sigs", snapshot) end |