Sha256: 28bf0c1260326d5fc822a4300ee6d49a388cff16750e0c9ccf10b3da36714376
Contents?: true
Size: 889 Bytes
Versions: 44
Compression:
Stored size: 889 Bytes
Contents
# mdJson 2.0 writer - grid representation # History: # Stan Smith 2017-03-14 refactored for mdJson/mdTranslator 2.0 # Josh Bradley original script require 'jbuilder' require_relative 'mdJson_dimension' module ADIWG module Mdtranslator module Writers module MdJson module Grid def self.build(hGrid) @Namespace = ADIWG::Mdtranslator::Writers::MdJson Jbuilder.new do |json| json.numberOfDimensions hGrid[:numberOfDimensions] json.dimension @Namespace.json_map(hGrid[:dimension], Dimension) json.cellGeometry hGrid[:cellGeometry] json.transformationParameterAvailable hGrid[:transformationParameterAvailable] end end # build end # Grid end end end end
Version data entries
44 entries across 44 versions & 1 rubygems