Sha256: f59c771d0747509c73b787bcc56c630ed5f45c5e45ab71ae79a83438899daa23
Contents?: true
Size: 1.04 KB
Versions: 59
Compression:
Stored size: 1.04 KB
Contents
# unpack id # Reader - ScienceBase JSON to internal data structure # History: # Stan Smith 2016-06-14 original script require 'adiwg/mdtranslator/internal/internal_metadata_obj' module ADIWG module Mdtranslator module Readers module SbJson module Id def self.unpack(hSbJson, hResponseObj) # instance classes needed in script intMetadataClass = InternalMetadata.new if hSbJson.has_key?('id') hIdentifier = intMetadataClass.newIdentifier sbId = hSbJson['id'] unless sbId.nil? || sbId == '' hIdentifier[:identifier] = sbId hIdentifier[:namespace] = 'gov.sciencebase.catalog' hIdentifier[:description] = 'USGS ScienceBase Identifier' return hIdentifier end end return nil end end end end end end
Version data entries
59 entries across 59 versions & 1 rubygems