module RelatonIana::IanaBibliography

Methods for search IANA standards.

Constants

SOURCE

Public Instance Methods

get(ref, _year = nil, _opts = {}) click to toggle source

@param ref [String] the W3C standard Code to look up @param year [String, NilClass] not used @param opts [Hash] options @return [RelatonBib::BibliographicItem]

# File lib/relaton_iana/iana_bibliography.rb, line 26
def get(ref, _year = nil, _opts = {})
  warn "[relaton-iana] (\"#{ref}\") fetching..."
  result = search(ref)
  return unless result

  warn "[relaton-iana] (\"#{ref}\") found #{result.docidentifier[0].id}"
  result
end