Sha256: efc8c5e86a8fb598972ca4e3d493bbd04a8c3c46cef4eab4c185179b01258ba1
Contents?: true
Size: 748 Bytes
Versions: 20
Compression:
Stored size: 748 Bytes
Contents
module ADIWG module Mdtranslator module Writers module SbJson module Facet def self.build(intObj) facets = [] if intObj[:resourceType] == 'project' status = { completed: 'Completed', underDevelopment: 'Active', accepted: 'Approved', funded: 'Funded', onGoing: 'In Progress', proposed: 'Proposed' } facets << { className: 'gov.sciencebase.catalog.item.facet.ProjectFacet', projectStatus: status[:"#{intObj[:status]}"] } end facets end end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems