Sha256: 1d11c8a27a27e4c472bb5fa955ce4214081679efe28e3e40d521415a662713b0

Contents?: true

Size: 1.6 KB

Versions: 14

Compression:

Stored size: 1.6 KB

Contents

# HTML writer
# entity foreign key

# History:
#  Stan Smith 2017-04-05 original script

module ADIWG
   module Mdtranslator
      module Writers
         module Simple_html

            class Html_EntityForeignKey

               def initialize(html)
                  @html = html
               end

               def writeHtml(hKey)

                  # foreign key - attributes []
                  unless hKey[:fkLocalAttributes].empty?
                     @html.em('Local Attribute(s):')
                     @html.div(: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.div(:class => 'block') do
                        hKey[:fkReferencedAttributes].each do |attribute|
                           @html.text!(attribute)
                           @html.br
                        end
                     end
                  end

               end # writeHtml
            end # Html_EntityForeignKey

         end
      end
   end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.31 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.19.0.pre.beta.30 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.19.0.pre.beta.29 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.19.0.pre.beta.28 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.19.0.pre.beta.27 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.19.0.pre.beta.26 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.19.0.pre.beta.13 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.19.0.pre.beta.12 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.19.0.pre.beta.11 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.19.0.pre.beta.10 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.19.0.pre.beta.9 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.19.0.pre.beta.8 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/writers/simple_html/sections/html_entityForeignKey.rb