Class: Relaton::Provider::Ietf

Inherits:
Object
  • Object
show all
Defined in:
lib/relaton/provider_ietf.rb

Class Method Summary collapse

Class Method Details

.from_rfcxml(xml) ⇒ RelatonIetf::IetfBibliographicItem

Parameters:

  • xml (String)

Returns:



7
8
9
10
11
# File 'lib/relaton/provider_ietf.rb', line 7

def from_rfcxml(xml)
  doc = Nokogiri::XML xml
  reference = doc.at "/rfc"
  RelatonIetf::BibXMLParser.fetch_rfc reference
end