Sha256: d69f870d32a0d03e0e55cf229ba23481a9a1418db4e71c694dcee5a3e3dae75a

Contents?: true

Size: 659 Bytes

Versions: 7

Compression:

Stored size: 659 Bytes

Contents

# ISO <<Class>> MD_Distribution
# writer output in XML

# History:
# 	Stan Smith 2013-09-25 original script
#   Stan Smith 2014-07-09 modify require statements to function in RubyGem structure

require 'class_distributor'

class MD_Distribution

	def initialize(xml)
		@xml = xml
	end

	def writeXML(aDistributors)

		# classes used
		distributorClass = MD_Distributor.new(@xml)

		@xml.tag!('gmd:MD_Distribution') do

			# distribution - distributor - required
			unless aDistributors.empty?
				aDistributors.each do |hDistributor|
					@xml.tag!('gmd:distributor') do
						distributorClass.writeXML(hDistributor)
					end
				end
			end

		end

	end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
adiwg-mdtranslator-0.10.2 lib/adiwg/mdtranslator/writers/iso/classes/class_distribution.rb
adiwg-mdtranslator-0.9.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_distribution.rb
adiwg-mdtranslator-0.8.6 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_distribution.rb
adiwg-mdtranslator-0.8.5 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_distribution.rb
adiwg-mdtranslator-0.8.2 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_distribution.rb
adiwg-mdtranslator-0.8.1 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_distribution.rb
adiwg-mdtranslator-0.8.0 lib/adiwg/mdtranslator/writers/iso19115_2/classes/class_distribution.rb