Sha256: d3ff45d1d23bb64a2c370b20ef1765c4b13c076236531b9be8c07ef43fdd0773

Contents?: true

Size: 1.78 KB

Versions: 20

Compression:

Stored size: 1.78 KB

Contents

# HTML writer
# vertical element

# History:
# 	Stan Smith 2015-04-03 original script

module ADIWG
    module Mdtranslator
        module Writers
            module Html

                class MdHtmlVerticalElement
                    def initialize(html)
                        @html = html
                    end

                    def writeHtml(hVertEle)

                        # vertical element - min value
                        n = hVertEle[:minValue]
                        if !n.nil?
                            @html.em('Minimum value: ')
                            @html.text!(n.to_s)
                            @html.br
                        end

                        # vertical element - max value
                        n = hVertEle[:maxValue]
                        if !n.nil?
                            @html.em('Maximum value: ')
                            @html.text!(n.to_s)
                            @html.br
                        end

                        # vertical element - coordinate reference system name
                        s = hVertEle[:crsTitle]
                        if !s.nil?
                            @html.em('Coordinate Reference System: ')
                            @html.text!(s)
                            @html.br
                        end

                        # vertical element - coordinate reference system URI
                        s = hVertEle[:crsURI]
                        if !s.nil?
                            @html.em('Coordinate Reference System URI: ')
                            @html.section(:class=>'block') do
                                @html.a(s)
                            end
                        end

                    end # writeHtml

                end # class

            end
        end
    end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
adiwg-mdtranslator-1.4.0 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta14 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta13 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta12 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta11 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta10 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta9 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta8 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta7 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta6 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta5 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta4 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta3 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta2 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.4.0.beta1 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.3.0 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.2.1 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.2.0 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.1.1 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb
adiwg-mdtranslator-1.1.0 lib/adiwg/mdtranslator/writers/html/sections/html_verticalElement.rb