Sha256: f7ffc0c059b495978370d1a7563db6dbc6bf82a4b32e0ac15ef7115c42134881
Contents?: true
Size: 829 Bytes
Versions: 1
Compression:
Stored size: 829 Bytes
Contents
# unpack id # Reader - ScienceBase JSON to internal data structure # History: # Stan Smith 2016-06-14 original script module ADIWG module Mdtranslator module Readers module SbJson module Id def self.unpack(hSbJson, hIdentifier, hResponseObj) # title if hSbJson.has_key?('id') sbId = hSbJson['id'] unless sbId.nil? || sbId == '' hIdentifier[:identifier] = sbId hIdentifier[:namespace] = 'gov.sciencebase.catalog' hIdentifier[:description] = 'USGS ScienceBase Identifier' end end return hIdentifier end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adiwg-mdtranslator-2.0.0rc13 | lib/adiwg/mdtranslator/readers/sbJson/modules/module_id.rb |