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

Version Path
adiwg-mdtranslator-2.0.0rc5 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.0.0rc4 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.0.0rc3 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.0.0rc2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb