Sha256: 3e1f91fd43b6763a11bbc19728c31f4d67e65008f7adf00022bcd81fb670e689
Contents?: true
Size: 815 Bytes
Versions: 1
Compression:
Stored size: 815 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 = [] aTypes.each do |hType| type = hType[:type] sbType = Codelists.codelist_iso_to_sb('iso_sb_scope', :isoCode => type) aCategories << sbType unless sbType.nil? end if aCategories.empty? return nil end aCategories = aCategories.uniq end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adiwg-mdtranslator-2.0.0rc9 | lib/adiwg/mdtranslator/writers/sbJson/sections/sbJson_browseCategory.rb |