Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_VerticalDatumParameters
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Simple_html::Html_VerticalDatumParameters
- Defined in:
- lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalDatumParameters.rb
Instance Method Summary collapse
-
#initialize(html) ⇒ Html_VerticalDatumParameters
constructor
A new instance of Html_VerticalDatumParameters.
- #writeHtml(hDatum) ⇒ Object
Constructor Details
#initialize(html) ⇒ Html_VerticalDatumParameters
Returns a new instance of Html_VerticalDatumParameters.
17 18 19 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalDatumParameters.rb', line 17 def initialize(html) @html = html end |
Instance Method Details
#writeHtml(hDatum) ⇒ 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 57 58 59 60 61 62 63 64 |
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_verticalDatumParameters.rb', line 21 def writeHtml(hDatum) # classes used identifierClass = Html_Identifier.new(@html) # vertical datum - is depth system {Boolean} if hDatum[:encodingMethod] @html.text!('Depth System') else @html.text!('Altitude System') end @html.br # vertical datum parameters - vertical datum identifier unless hDatum[:datumIdentifier].empty? @html.div do @html.div('Vertical Datum Identifier', {'id' => 'datum-identifier', 'class' => 'h5'}) @html.div(:class => 'block') do identifierClass.writeHtml(hDatum[:datumIdentifier]) end end end # vertical datum - encoding method unless hDatum[:encodingMethod].nil? @html.em('Encoding Method: ') @html.text!(hDatum[:encodingMethod]) @html.br end # vertical datum - vertical resolution unless hDatum[:verticalResolution].nil? @html.em('Vertical Resolution: ') @html.text!(hDatum[:verticalResolution].to_s) @html.br end # vertical datum - unit of measure unless hDatum[:unitOfMeasure].nil? @html.em('Unit of Measure: ') @html.text!(hDatum[:unitOfMeasure]) end end |