class ADIWG::Mdtranslator::Writers::Html::Html_DataQuality
Public Class Methods
new(html)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_dataQuality.rb, line 8 def initialize(html) @html = html end
Public Instance Methods
writeHtml(hDataQuality)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_dataQuality.rb, line 12 def writeHtml(hDataQuality) citationClass = Html_Citation.new(@html) scopeClass = Html_Scope.new(@html) unless hDataQuality[:scope].nil? || hDataQuality[:scope].empty? @html.section(class: 'block') do @html.details do @html.summary('Scope', {'class' => 'h5'}) @html.section(class: 'block') do scopeClass.writeHtml(hDataQuality[:scope]) end end end end unless hDataQuality[:standaloneQualityReport].nil? || ( hDataQuality[:standaloneQualityReport][:abstract].nil? && hDataQuality[:standaloneQualityReport][:reportReference].nil? ) report = hDataQuality[:standaloneQualityReport] @html.section(class: 'block') do @html.details do @html.summary('Standalone Quality Report', {'class' => 'h5'}) unless report[:abstract].nil? @html.section(class: 'block') do @html.em('Abstract:') @html.text!(report[:abstract]) end end unless report[:reportReference].nil? @html.details do @html.summary('Report Reference', {'class' => 'h5'}) @html.section(class: 'block') do citationClass.writeHtml(report[:reportReference]) end end end end end end end