Module: ADIWG::Mdtranslator::Writers::MdJson::Grid
- Defined in:
- lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb
Class Method Summary collapse
Class Method Details
.build(hGrid) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_gridRepresentation.rb', line 17 def self.build(hGrid) @Namespace = ADIWG::Mdtranslator::Writers::MdJson Jbuilder.new do |json| json.scope hGrid[:scope] json.numberOfDimensions hGrid[:numberOfDimensions] json.dimension @Namespace.json_map(hGrid[:dimension], Dimension) json.cellGeometry hGrid[:cellGeometry] json.transformationParameterAvailable hGrid[:transformationParameterAvailable] end end |