class ADIWG::Mdtranslator::Writers::Html::Html_EntityForeignKey
Public Class Methods
new(html)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_entityForeignKey.rb, line 14 def initialize(html) @html = html end
Public Instance Methods
writeHtml(hKey)
click to toggle source
# File lib/adiwg/mdtranslator/writers/html/sections/html_entityForeignKey.rb, line 18 def writeHtml(hKey) # foreign key - attributes [] unless hKey[:fkLocalAttributes].empty? @html.em('Local Attribute(s):') @html.section(:class => 'block') do hKey[:fkLocalAttributes].each do |attribute| @html.text!(attribute) @html.br end end end # foreign key - referenced entity unless hKey[:fkReferencedEntity].nil? @html.em('Referenced Entity Code: ') @html.text!(hKey[:fkReferencedEntity]) @html.br end # foreign key - referenced attributes [] unless hKey[:fkReferencedAttributes].empty? @html.em('Referenced Attribute(s):') @html.section(:class => 'block') do hKey[:fkReferencedAttributes].each do |attribute| @html.text!(attribute) @html.br end end end end