Sha256: cfe7cfa76d391124bec09ac8c8efccb8810adb22d0f0fdb4db43bee3d55518d2
Contents?: true
Size: 1.38 KB
Versions: 6
Compression:
Stored size: 1.38 KB
Contents
require 'jbuilder' require_relative 'mdJson_scope' require_relative 'mdJson_spatialRepresentation' require_relative 'mdJson_format' require_relative 'mdJson_qualityResultFile' require_relative 'mdJson_coverageDescription' module ADIWG module Mdtranslator module Writers module MdJson module CoverageResult def self.build(hCoverageResult) Jbuilder.new do |json| json.dateTime hCoverageResult[:dateTime] json.scope Scope.build(hCoverageResult[:scope]) unless hCoverageResult[:scope].empty? json.name hCoverageResult[:name] unless hCoverageResult[:name].nil? json.spatialRepresentationType hCoverageResult[:spatialRepresentationType] json.spatialRepresentation SpatialRepresentation.build(hCoverageResult[:spatialRepresentation]) unless hCoverageResult[:spatialRepresentation].empty? json.resultContentDescription CoverageDescription.build(hCoverageResult[:resultContentDescription]) unless hCoverageResult[:resultContentDescription].empty? json.resourceFormat Format.build(hCoverageResult[:resourceFormat]) unless hCoverageResult[:resourceFormat].empty? json.resultFile QualityResultFile.build(hCoverageResult[:resultFile]) unless hCoverageResult[:resultFile].empty? end end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems