Class: ADIWG::Mdtranslator::Writers::Fgdc::GeologicRange
- Inherits:
-
Object
- Object
- ADIWG::Mdtranslator::Writers::Fgdc::GeologicRange
- Defined in:
- lib/adiwg/mdtranslator/writers/fgdc/classes/class_geologicRange.rb
Instance Method Summary collapse
-
#initialize(xml, hResponseObj) ⇒ GeologicRange
constructor
A new instance of GeologicRange.
- #writeXML(hAgeStart, hAgeEnd) ⇒ Object
Constructor Details
#initialize(xml, hResponseObj) ⇒ GeologicRange
Returns a new instance of GeologicRange.
18 19 20 21 22 |
# File 'lib/adiwg/mdtranslator/writers/fgdc/classes/class_geologicRange.rb', line 18 def initialize(xml, hResponseObj) @xml = xml @hResponseObj = hResponseObj @NameSpace = ADIWG::Mdtranslator::Writers::Fgdc end |
Instance Method Details
#writeXML(hAgeStart, hAgeEnd) ⇒ Object
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 |
# File 'lib/adiwg/mdtranslator/writers/fgdc/classes/class_geologicRange.rb', line 24 def writeXML(hAgeStart, hAgeEnd) # classes used ageClass = GeologicAge.new(@xml, @hResponseObj) # geologic age range (beggeol) - starting geologic age (required) unless hAgeStart.empty? @xml.tag!('beggeol') do ageClass.writeXML(hAgeStart) end end if hAgeStart.empty? @NameSpace.issueWarning(172, nil) end # geologic age range (endgeol) - ending geologic age (required) unless hAgeStart.empty? @xml.tag!('endgeol') do ageClass.writeXML(hAgeEnd) end end if hAgeEnd.empty? @NameSpace.issueWarning(173, nil) end end |