Sha256: 7c3e71ced94b96a27430528f8768399c1d17ffe4290577ab3ddd0da014f87477
Contents?: true
Size: 881 Bytes
Versions: 4
Compression:
Stored size: 881 Bytes
Contents
# frozen_string_literal:true module RelatonCie # IETF bibliography module module CieBibliography class << self # @param code [String] the ECMA standard Code to look up (e..g "ECMA-6") # @return [RelatonBib::BibliographicEcma] def search(code) Scrapper.scrape_page code end # @param code [String] the ECMA standard Code to look up (e..g "ECMA-6") # @param year [String] not used # @param opts [Hash] not used # @return [RelatonCie::BibliographicItem] Relaton of reference def get(code, _year = nil, _opts = {}) Util.warn "(#{code}) Fetching from Relaton repository ..." result = search code if result Util.warn "(#{code}) Found: `#{result.docidentifier.first.id}`" else Util.warn "(#{code}) Not found." end result end end end end
Version data entries
4 entries across 4 versions & 1 rubygems