Sha256: 0f55d4ac64375e84cd3d4100bf2c473e5eceafbd3bc0e901a942c6d8bd512d2c
Contents?: true
Size: 851 Bytes
Versions: 2
Compression:
Stored size: 851 Bytes
Contents
# frozen_string_literal:true module RelatonOmg # OMG bibliography module module OmgBibliography class << self # @param code [String] the OMG standard reference # @return [RelatonOmg::OmgBibliographicItem] def search(text) Scraper.scrape_page text end # @param code [String] the OMG standard reference # @param year [String] the year the standard was published (optional) # @param opts [Hash] options # @return [RelatonOmg::OmgBibliographicItem] def get(code, _year = nil, _opts = {}) Util.info "Fetching from www.omg.org ...", key: code result = search code if result Util.info "Found: `#{result.docidentifier.first.id}`", key: code else Util.info "Not found.", key: code end result end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
relaton-omg-1.19.1 | lib/relaton_omg/omg_bibliography.rb |
relaton-omg-1.19.0 | lib/relaton_omg/omg_bibliography.rb |