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.17.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.16.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.15.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.14.2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.14.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.14.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.13.3 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.13.2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.13.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.13.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.12.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.12.0.pre lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.10.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.9.2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.9.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.9.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.8.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.7.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.6.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
adiwg-mdtranslator-2.6.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb