Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_VerticalExtent
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Simple_html::Html_VerticalExtent
- Defined in:
- lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb
Instance Method Summary collapse
-
#initialize(html) ⇒ Html_VerticalExtent
constructor
A new instance of Html_VerticalExtent.
- #writeHtml(hExtent) ⇒ Object
Constructor Details
#initialize(html) ⇒ Html_VerticalExtent
Returns a new instance of Html_VerticalExtent.
17 18 19 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb', line 17 def initialize(html) @html = html end |
Instance Method Details
#writeHtml(hExtent) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalExtent.rb', line 21 def writeHtml(hExtent) # classes used referenceClass = Html_SpatialReference.new(@html) # vertical extent - description unless hExtent[:description].nil? @html.em('Description: ') @html.div(:class => 'block') do @html.text!(hExtent[:description]) end end # vertical extent - min value unless hExtent[:minValue].nil? @html.em('Minimum Value: ') @html.text!(hExtent[:minValue].to_s) @html.br end # vertical extent - max value unless hExtent[:maxValue].nil? @html.em('Maximum Value: ') @html.text!(hExtent[:maxValue].to_s) @html.br end # vertical extent - CRS ID {spatialReference} unless hExtent[:crsId].empty? @html.em('Reference System: ') @html.div(:class => 'block') do referenceClass.writeHtml(hExtent[:crsId]) end end end |