Module: ReportBuilder::ReportAbstract
- Included in:
- FulltextReport, PrismaReport, ProcessReport
- Defined in:
- lib/report_builder.rb
Overview
Abstract interface for reports. Note that we change to name to not instantiate this if an ‘Abstract’ report be created on the future
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
A Sinatra::Base object.
-
#sr ⇒ Object
readonly
A SystematicReview object.
Instance Method Summary collapse
Instance Attribute Details
#app ⇒ Object (readonly)
A Sinatra::Base object.
57 58 59 |
# File 'lib/report_builder.rb', line 57 def app @app end |
#sr ⇒ Object (readonly)
A SystematicReview object
55 56 57 |
# File 'lib/report_builder.rb', line 55 def sr @sr end |
Instance Method Details
#output(format) ⇒ Object
58 59 60 |
# File 'lib/report_builder.rb', line 58 def output(format) send("output_#{format}".to_sym) end |