Sha256: 4afd2aad79e64e86ce009c17a1e5d2353bc64951aa9ac10f9698f5c259467ec4
Contents?: true
Size: 683 Bytes
Versions: 7
Compression:
Stored size: 683 Bytes
Contents
# ISO <<Class>> MD_Format # writer output in XML # History: # Stan Smith 2013-08-26 original script class MD_Format def initialize(xml) @xml = xml end def writeXML(rFormat) @xml.tag!('gmd:MD_Format') do # format - name - required s = rFormat[:formatName] if s.nil? @xml.tag!('gmd:name',{'gco:nilReason'=>'missing'}) else @xml.tag!('gmd:name') do @xml.tag!('gco:CharacterString',s) end end # format - version - required s = rFormat[:formatVersion] if s.nil? @xml.tag!('gmd:version',{'gco:nilReason'=>'unknown'}) else @xml.tag!('gmd:version') do @xml.tag!('gco:CharacterString',s) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems