Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_ProcessStepReport

Inherits:
Object
  • Object
show all
Defined in:
lib/adiwg/mdtranslator/writers/simple_html/sections/html_processReport.rb

Instance Method Summary collapse

Constructor Details

#initialize(html) ⇒ Html_ProcessStepReport

Returns a new instance of Html_ProcessStepReport.



14
15
16
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_processReport.rb', line 14

def initialize(html)
   @html = html
end

Instance Method Details

#writeHtml(hReport) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_processReport.rb', line 18

def writeHtml(hReport)

   # process step report - name
   unless hReport[:name].nil?
      @html.em('Name: ')
      @html.text!(hReport[:name])
      @html.br
   end

   # process step report - description
   unless hReport[:description].nil?
      @html.em('Description: ')
      @html.text!(hReport[:description])
      @html.br
   end

   # process step report - file type
   unless hReport[:fileType].nil?
      @html.em('File Type: ')
      @html.text!(hReport[:fileType])
      @html.br
   end

end