21
22
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_usage.rb', line 21
def self.build(hUsage)
Jbuilder.new do |json|
json.specificUsage hUsage[:specificUsage]
json.temporalExtent @Namespace.json_map(hUsage[:temporalExtents],TemporalExtent)
json.userDeterminedLimitation hUsage[:userLimitation]
json.limitationResponse hUsage[:limitationResponses] unless hUsage[:limitationResponses].empty?
json.documentedIssue Citation.build(hUsage[:identifiedIssue]) unless hUsage[:identifiedIssue].empty?
json.additionalDocumentation @Namespace.json_map(hUsage[:additionalDocumentation], Citation)
json.userContactInfo @Namespace.json_map(hUsage[:userContacts], ResponsibleParty)
end
end
|