module Relaton3gpp::Bibliography

Methods for search IANA standards.

Constants

SOURCE

SOURCE = “xml2rfc.tools.ietf.org/public/rfc/bibxml-3gpp-new/”

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_3gpp/bibliography.rb, line 30
def get(ref, _year = nil, _opts = {})
  warn "[relaton-3gpp] (\"#{ref}\") fetching..."
  result = search(ref)
  unless result
    warn "[relaton-3gpp] (\"#{ref}\") not found"
    return
  end

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