Sha256: f46d02ad1713c69049644c9750bebadf1e9aad55897d9c8deec72ef360bbdc66

Contents?: true

Size: 970 Bytes

Versions: 22

Compression:

Stored size: 970 Bytes

Contents

# mdJson 2.0 writer - online resource

# History:
#  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
      module Writers
         module MdJson

            module OnlineResource

               def self.build(hOlRes)

                  Jbuilder.new do |json|
                     json.uri hOlRes[:olResURI]
                     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

         end
      end
   end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
adiwg-mdtranslator-2.19.0.pre.beta.13 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.19.0.pre.beta.12 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.19.0.pre.beta.11 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.19.0.pre.beta.10 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.19.0.pre.beta.9 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.19.0.pre.beta.8 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.19.0.pre.beta.7 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.4 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.0 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.0rc9 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.0rc8 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.0rc7 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.0rc6 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.0rc5 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.0rc4 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.0rc3 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.0rc2 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb
adiwg-mdtranslator-2.18.0rc1 lib/adiwg/mdtranslator/writers/mdJson/sections/mdJson_onlineResource.rb