Class: Spoom::Coverage::Cards::Card
- Defined in:
- lib/spoom/coverage/report.rb
Constant Summary collapse
- TEMPLATE =
: String
"#{Spoom::SPOOM_PATH}/templates/card.erb"
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
: String?.
-
#title ⇒ Object
readonly
: String?.
Instance Method Summary collapse
-
#initialize(template: TEMPLATE, title: nil, body: nil) ⇒ Card
constructor
: (?template: String, ?title: String?, ?body: String?) -> void.
Methods inherited from Template
Constructor Details
#initialize(template: TEMPLATE, title: nil, body: nil) ⇒ Card
: (?template: String, ?title: String?, ?body: String?) -> void
89 90 91 92 93 |
# File 'lib/spoom/coverage/report.rb', line 89 def initialize(template: TEMPLATE, title: nil, body: nil) super(template: template) @title = title @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
: String?
86 87 88 |
# File 'lib/spoom/coverage/report.rb', line 86 def body @body end |
#title ⇒ Object (readonly)
: String?
86 87 88 |
# File 'lib/spoom/coverage/report.rb', line 86 def title @title end |