Class: MD_Constraints
- Inherits:
-
Object
- Object
- MD_Constraints
- Defined in:
- lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_useConstraints.rb
Overview
History: Stan Smith 2013-10-31 original script
Instance Method Summary collapse
-
#initialize(xml) ⇒ MD_Constraints
constructor
A new instance of MD_Constraints.
- #writeXML(aUseCons) ⇒ Object
Constructor Details
#initialize(xml) ⇒ MD_Constraints
Returns a new instance of MD_Constraints.
9 10 11 |
# File 'lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_useConstraints.rb', line 9 def initialize(xml) @xml = xml end |
Instance Method Details
#writeXML(aUseCons) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_useConstraints.rb', line 13 def writeXML(aUseCons) @xml.tag!('gmd:MD_Constraints') do aUseCons.each do |useCon| # use constraints - required @xml.tag!('gmd:useLimitation') do @xml.tag!('gco:CharacterString',useCon) end end end end |