Class: Ruptr::Report::Builder
- Inherits:
-
Object
- Object
- Ruptr::Report::Builder
- Includes:
- Sink
- Defined in:
- lib/ruptr/report.rb
Instance Attribute Summary collapse
-
#report ⇒ Object
Returns the value of attribute report.
Instance Method Summary collapse
- #begin_plan(fields) ⇒ Object
- #finish_element(te, tr) ⇒ Object
- #finish_plan(fields) ⇒ Object
-
#initialize(report = Report.new) ⇒ Builder
constructor
A new instance of Builder.
Methods included from Sink
#begin_case, #begin_group, #finish_case, #finish_group, #submit_case, #submit_group, #submit_plan
Constructor Details
Instance Attribute Details
#report ⇒ Object
Returns the value of attribute report.
93 94 95 |
# File 'lib/ruptr/report.rb', line 93 def report @report end |
Instance Method Details
#begin_plan(fields) ⇒ Object
95 96 97 |
# File 'lib/ruptr/report.rb', line 95 def begin_plan(fields) fields.each { |k, v| report[k] = v } end |
#finish_element(te, tr) ⇒ Object
103 104 105 |
# File 'lib/ruptr/report.rb', line 103 def finish_element(te, tr) report.record_result(te, tr) end |
#finish_plan(fields) ⇒ Object
99 100 101 |
# File 'lib/ruptr/report.rb', line 99 def finish_plan(fields) fields.each { |k, v| report[k] = v } end |