Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_GeographicResolution

Inherits:
Object
  • Object
show all
Defined in:
lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicResolution.rb

Instance Method Summary collapse

Constructor Details

#initialize(html) ⇒ Html_GeographicResolution

Returns a new instance of Html_GeographicResolution.



14
15
16
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicResolution.rb', line 14

def initialize(html)
   @html = html
end

Instance Method Details

#writeHtml(hGeoRes) ⇒ Object



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# File 'lib/adiwg/mdtranslator/writers/simple_html/sections/html_geographicResolution.rb', line 18

def writeHtml(hGeoRes)

   # geographic resolution - latitude resolution
   unless hGeoRes[:latitudeResolution].nil?
      @html.em('Latitude Resolution: ')
      @html.text!(hGeoRes[:latitudeResolution].to_s)
      @html.br
   end

   # geographic resolution - longitude resolution
   unless hGeoRes[:longitudeResolution].nil?
      @html.em('Longitude Resolution: ')
      @html.text!(hGeoRes[:longitudeResolution].to_s)
      @html.br
   end

   # geographic resolution - unit of measure
   unless hGeoRes[:unitOfMeasure].nil?
      @html.em('Units of Measure: ')
      @html.text!(hGeoRes[:unitOfMeasure])
      @html.br
   end

end