Class: ADIWG::Mdtranslator::Writers::Simple_html::Html_CoordinateResolution

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

Instance Method Summary collapse

Constructor Details

#initialize(html) ⇒ Html_CoordinateResolution



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

def initialize(html)
   @html = html
end

Instance Method Details

#writeHtml(hCoordRes) ⇒ 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_coordinateResolution.rb', line 18

def writeHtml(hCoordRes)

   # coordinate resolution - abscissa
   unless hCoordRes[:abscissaResolutionX].nil?
      @html.em('X Resolution (abscissa): ')
      @html.text!(hCoordRes[:abscissaResolutionX].to_s)
      @html.br
   end

   # coordinate resolution - ordinate
   unless hCoordRes[:ordinateResolutionY].nil?
      @html.em('Y Resolution (ordinate): ')
      @html.text!(hCoordRes[:ordinateResolutionY].to_s)
      @html.br
   end

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

end