Sha256: ffea73887749d6a21bbb7e99cdec8447213d28cebdcac955ad882182829060d3
Contents?: true
Size: 291 Bytes
Versions: 87
Compression:
Stored size: 291 Bytes
Contents
require 'open-uri' class LsidResolver def self.resolve(lsid) http_get_rdf(lsid) end protected def self.http_get_rdf(lsid) rdf = '' open(LSID_RESOLVER_URL + lsid) do |f| f.each do |line| rdf += line if !line.strip.blank? end end rdf end end
Version data entries
87 entries across 87 versions & 3 rubygems