module ADIWG::Mdtranslator::Writers::MdJson::Usage

Public Class Methods

build(hUsage) click to toggle source
# 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