Sha256: e65d4dd06adf61ee979e4cf5e49df133058cf5900eed709a41546f0562fc6ac3
Contents?: true
Size: 1.13 KB
Versions: 1
Compression:
Stored size: 1.13 KB
Contents
# unpack vertical element # Reader - ADIwg JSON V1 to internal data structure # History: # Stan Smith 2013-11-18 original script # Stan Smith 2013-12-11 modified to handle single vertical element module Md_VerticalElement def self.unpack(hVertElement) # instance classes needed in script intMetadataClass = InternalMetadata.new intVertEle = intMetadataClass.newVerticalElement # vertical element - minimum value if hVertElement.has_key?('minimumValue') s = hVertElement['minimumValue'] if s != '' intVertEle[:minValue] = s end end # vertical element - maximum value if hVertElement.has_key?('maximumValue') s = hVertElement['maximumValue'] if s != '' intVertEle[:maxValue] = s end end # vertical element - vertical crs title attribute if hVertElement.has_key?('verticalCRSTitle') s = hVertElement['verticalCRSTitle'] if s != '' intVertEle[:crsTitle] = s end end # vertical element - vertical crs link attribute if hVertElement.has_key?('verticalCRSUri') s = hVertElement['verticalCRSUri'] if s != '' intVertEle[:crsURI] = s end end return intVertEle end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adiwg-mdtranslator-0.10.2 | lib/adiwg/mdtranslator/readers/mdJson/modules_0.9.0/module_verticalElement.rb |