lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb in adiwg-mdtranslator-2.15.0 vs lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb in adiwg-mdtranslator-2.16.1
- old
+ new
@@ -1,10 +1,11 @@
# mdJson 2.0 writer - online resource
# History:
-# Stan Smith 2017-03-11 refactored for mdJson/mdTranslator 2.0
-# Josh Bradley original script
+# Stan Smith 2019-09-18 add protocolRequest and applicationProfile
+# Stan Smith 2017-03-11 refactored for mdJson/mdTranslator 2.0
+# Josh Bradley original script
require 'jbuilder'
module ADIWG
module Mdtranslator
@@ -15,13 +16,15 @@
def self.build(hOlRes)
Jbuilder.new do |json|
json.uri hOlRes[:olResURI]
- json.protocol hOlRes[:olResProtocol]
json.name hOlRes[:olResName]
json.description hOlRes[:olResDesc]
json.function hOlRes[:olResFunction]
+ json.applicationProfile hOlRes[:olResApplicationProfile]
+ json.protocol hOlRes[:olResProtocol]
+ json.protocolRequest hOlRes[:olResProtocolRequest]
end
end # build
end # OnlineResource