lib/adiwg/mdtranslator/writers/iso19110/classes/class_derivedUnit.rb in adiwg-mdtranslator-1.4.0 vs lib/adiwg/mdtranslator/writers/iso19110/classes/class_derivedUnit.rb in adiwg-mdtranslator-2.0.0rc2
- old
+ new
@@ -15,17 +15,17 @@
class DerivedUnit
def initialize(xml, responseObj)
@xml = xml
- @responseObj = responseObj
+ @hResponseObj = responseObj
end
def writeXML(hDerived)
# create and identity for the unit
- @responseObj[:writerMissingIdCount] = @responseObj[:writerMissingIdCount].succ
- unitID = 'unit' + @responseObj[:writerMissingIdCount]
+ @hResponseObj[:writerMissingIdCount] = @hResponseObj[:writerMissingIdCount].succ
+ unitID = 'unit' + @hResponseObj[:writerMissingIdCount]
@xml.tag!('gml:DerivedUnit', {'gml:id' => unitID}) do
@xml.tag!('gml:identifier', {'codeSpace' => hDerived[:codeSpace]}, hDerived[:identifier])
@xml.tag!('gml:name', hDerived[:name])
@xml.tag!('gml:remarks', hDerived[:remarks])
@xml.tag!('gml:catalogSymbol', hDerived[:catalogSymbol])