Sha256: 6e4381f0db3aa1f17cdea664fe470067dacf5b411251a0f62f5a68c32ff33fd0
Contents?: true
Size: 461 Bytes
Versions: 1
Compression:
Stored size: 461 Bytes
Contents
module Rea module DBLP class Search include DBLP def call(query) unless query.size == 1 and query[:title] not_implemented_error!("Unable to search with #{query.inspect}") end title = query[:title].gsub(/\s+/, "%20") xml = get("#{search_url}?q=#{title}") tuples = QueryResultParser.parse(xml) Relation(tuples) end end # class Search end # module DBLP end # module Rea
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rea-0.0.1 | lib/rea-dblp/rea/dblp/search.rb |