Sha256: 1f161431e1936cee9903b8a2fd0555129786f9469b9bb3bd840b7e5ec700c26a

Contents?: true

Size: 393 Bytes

Versions: 5

Compression:

Stored size: 393 Bytes

Contents

module RelatonJis
  class XMLParser < RelatonBib::XMLParser
    class << self
      private

      # @param item_hash [Hash]
      # @return [RelatonSgpp::BibliographicItem]
      def bib_item(item_hash)
        BibliographicItem.new(**item_hash)
      end

      def create_doctype(type)
        DocumentType.new type: type.text, abbreviation: type[:abbreviation]
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
relaton-jis-1.19.3 lib/relaton_jis/xml_parser.rb
relaton-jis-1.19.2 lib/relaton_jis/xml_parser.rb
relaton-jis-1.19.1 lib/relaton_jis/xml_parser.rb
relaton-jis-1.19.0 lib/relaton_jis/xml_parser.rb
relaton-jis-1.18.1 lib/relaton_jis/xml_parser.rb