Module: ADIWG::Mdtranslator::Writers::MdJson::Maintenance
- Defined in:
- lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_maintenance.rb
Class Method Summary collapse
Class Method Details
.build(hMaint) ⇒ Object
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_maintenance.rb', line 21 def self.build(hMaint) Jbuilder.new do |json| json.frequency hMaint[:frequency] json.date @Namespace.json_map(hMaint[:dates], Date) json.scope @Namespace.json_map(hMaint[:scopes], Scope) json.note hMaint[:notes] unless hMaint[:notes].empty? json.contact @Namespace.json_map(hMaint[:contacts], ResponsibleParty) end end |