class ADIWG::Mdtranslator::Writers::Html::Html_OnlineResource
Public Class Methods
new(html)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_onlineResource.rb, line 15 def initialize(html) @html = html end
Public Instance Methods
writeHtml(hOlRes)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_onlineResource.rb, line 19 def writeHtml(hOlRes) # online resource - URI @html.em('URI: ') @html.a(hOlRes[:olResURI], 'href' => hOlRes[:olResURI]) @html.br # online resource - name unless hOlRes[:olResName].nil? @html.em('Name: ') @html.text!(hOlRes[:olResName]) @html.br end # online resource - description unless hOlRes[:olResDesc].nil? @html.em('Description: ') @html.text!(hOlRes[:olResDesc]) @html.br end # online resource - function unless hOlRes[:olResFunction].nil? @html.em('Function: ') @html.text!(hOlRes[:olResFunction]) @html.br end # online resource - application profile unless hOlRes[:olResApplicationProfile].nil? @html.em('Application Profile: ') @html.text!(hOlRes[:olResApplicationProfile]) @html.br end # online resource - protocol unless hOlRes[:olResProtocol].nil? @html.em('Protocol: ') @html.text!(hOlRes[:olResProtocol]) @html.br end # online resource - protocol request unless hOlRes[:olResProtocolRequest].nil? @html.em('Protocol Request: ') @html.text!(hOlRes[:olResProtocolRequest]) @html.br end end