Class: BioDSL::HtmlReport

Inherits:
Object
  • Object
show all
Includes:
OptionsHelper
Defined in:
lib/BioDSL/html_report.rb

Overview

Class for creating HTML reports from an executed BioDSL pipeline.

Instance Method Summary collapse

Constructor Details

#initialize(pipeline) ⇒ HtmlReport

Constructor for HtmlReport.

Parameters:

  • pipeline (BioPeices::Pipeline)

    Pipeline object



40
41
42
43
# File 'lib/BioDSL/html_report.rb', line 40

def initialize(pipeline)
  @pipeline = pipeline
  @commands = pipeline.commands
end

Instance Method Details

#to_htmlObject

Render HTML output.



46
47
48
49
# File 'lib/BioDSL/html_report.rb', line 46

def to_html
  render('layout.html.haml', self, pipeline: @pipeline.to_s,
                                   commands: @commands)
end