Sha256: f81d4facfc448abcdcef54ef8456540b2bb7dc3a6e34f6dfbf3e2221045ee08b
Contents?: true
Size: 810 Bytes
Versions: 58
Compression:
Stored size: 810 Bytes
Contents
# sbJson 1.0 writer browse categories # History: # Stan Smith 2017-05-31 original script require 'jbuilder' require_relative 'sbJson_codelists' module ADIWG module Mdtranslator module Writers module SbJson module BrowseCategory def self.build(aTypes) aCategories = [] # always include a 'Data' browse category aCategories << 'Data' aTypes.each do |hType| type = hType[:type] sbType = Codelists.codelist_adiwg2sb('scope_adiwg2sb', type) aCategories << sbType unless sbType.nil? end aCategories = aCategories.uniq end end end end end end
Version data entries
58 entries across 58 versions & 1 rubygems