lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb in adiwg-mdtranslator-1.4.0 vs lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb in adiwg-mdtranslator-2.0.0rc2
- old
+ new
@@ -1,21 +1,32 @@
+# mdJson 2.0 writer - online resource
+
+# History:
+# Stan Smith 2017-03-11 refactored for mdJson/mdTranslator 2.0
+# Josh Bradley original script
+
require 'jbuilder'
module ADIWG
- module Mdtranslator
- module Writers
- module MdJson
- module OnlineResource
- def self.build(intObj)
- Jbuilder.new do |json|
- json.uri intObj[:olResURI]
- json.protocol intObj[:olResProtocol]
- json.name intObj[:olResName]
- json.description intObj[:olResDesc]
- json.function intObj[:olResFunction]
- end
- end
- end
+ module Mdtranslator
+ module Writers
+ module MdJson
+
+ module OnlineResource
+
+ 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]
+ end
+
+ end # build
+ end # OnlineResource
+
+ end
end
- end
- end
+ end
end