Sha256: 91f7cea5315374f2e734d826476875a4063bd72ad75cce28be77474a68c41052
Contents?: true
Size: 935 Bytes
Versions: 1
Compression:
Stored size: 935 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] json.scope hGrid[:scope] end end # build end # Grid end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adiwg-mdtranslator-2.18.0rc1 | lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb |