Sha256: a500d663ba50244e870a41cc3c32083fe4b380c7d7cffbf7f6ba6499e17128a3

Contents?: true

Size: 350 Bytes

Versions: 4

Compression:

Stored size: 350 Bytes

Contents

module Relaton
  module Provider
    class Ietf
      class << self
        # @param xml [String]
        # @return [RelatonIetf::IetfBibliographicItem]
        def from_rfcxml(xml)
          doc = Nokogiri::XML xml
          reference = doc.at "/rfc"
          RelatonIetf::Scrapper.bib_item reference, "rfc"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
relaton-ietf-0.5.3 lib/relaton/provider_ietf.rb
relaton-ietf-0.5.2 lib/relaton/provider_ietf.rb
relaton-ietf-0.5.1 lib/relaton/provider_ietf.rb
relaton-ietf-0.5.0 lib/relaton/provider_ietf.rb