Skip to content

Commit

Permalink
add format and QualityResultFile classes to coverageResult in writer
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Oliveros committed Jan 25, 2024
1 parent 5e03ebd commit e461a4a
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
require 'jbuilder'
require_relative 'mdJson_scope'
require_relative 'mdJson_spatialRepresentation'
require_relative 'mdJson_format'
require_relative 'mdJson_qualityResultFile'

module ADIWG
module Mdtranslator
Expand All @@ -15,8 +17,8 @@ def self.build(hCoverageResult)
json.spatialRepresentationType hCoverageResult[:spatialRepresentationType]
json.spatialRepresentation SpatialRepresentation.build(hCoverageResult[:spatialRepresentation]) unless hCoverageResult[:spatialRepresentation].nil?
json.resultContent hCoverageResult[:resultContent]
json.resourceFormat hCoverageResult[:resourceFormat]
json.resultFile hCoverageResult[:resultFile]
json.resourceFormat Format.build(hCoverageResult[:resourceFormat]) unless hCoverageResult[:resourceFormat].nil?
json.resultFile QualityResultFile.build(hCoverageResult[:resultFile]) unless hCoverageResult[:resultFile].nil?
end
end
end
Expand Down

0 comments on commit e461a4a

Please sign in to comment.