Class: CIAT::Feedback::HtmlFeedbackBuilder
- Inherits:
-
Object
- Object
- CIAT::Feedback::HtmlFeedbackBuilder
- Includes:
- IO
- Defined in:
- lib/ciat/feedback/html_feedback_builder.rb
Constant Summary
Constants included from IO
IO::OUTPUT_FOLDER, IO::REPORT_FILENAME
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #build_output_folder ⇒ Object
- #build_report_filename ⇒ Object
- #build_report_title ⇒ Object
-
#initialize(options) ⇒ HtmlFeedbackBuilder
constructor
A new instance of HtmlFeedbackBuilder.
Methods included from IO
Constructor Details
#initialize(options) ⇒ HtmlFeedbackBuilder
Returns a new instance of HtmlFeedbackBuilder.
8 9 10 |
# File 'lib/ciat/feedback/html_feedback_builder.rb', line 8 def initialize() = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
6 7 8 |
# File 'lib/ciat/feedback/html_feedback_builder.rb', line 6 def end |
Instance Method Details
#build_output_folder ⇒ Object
12 13 14 |
# File 'lib/ciat/feedback/html_feedback_builder.rb', line 12 def build_output_folder [:output_folder] || OUTPUT_FOLDER end |
#build_report_filename ⇒ Object
16 17 18 |
# File 'lib/ciat/feedback/html_feedback_builder.rb', line 16 def build_report_filename File.join(build_output_folder, [:report_filename] || REPORT_FILENAME) end |
#build_report_title ⇒ Object
20 21 22 23 24 25 26 |
# File 'lib/ciat/feedback/html_feedback_builder.rb', line 20 def build_report_title if [:report_title] "CIAT Report: " + [:report_title] else "CIAT Report" end end |