Class: Spoom::Coverage::Cards::Card
Constant Summary
collapse
- TEMPLATE =
"#{Spoom::SPOOM_PATH}/templates/card.erb".freeze
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Template
#erb, #get_binding, #html
Constructor Details
#initialize(template: TEMPLATE, title: nil, body: nil) ⇒ Card
Returns a new instance of Card.
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
86
87
88
|
# File 'lib/spoom/coverage/report.rb', line 86
def body
@body
end
|
#title ⇒ Object
86
87
88
|
# File 'lib/spoom/coverage/report.rb', line 86
def title
@title
end
|