Sha256: ebea823d29c8d562674d06af148b58a9fe7e2b4b4e2869751e6b2a85f6586868
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
require "relaton/processor" module RelatonIho class Processor < Relaton::Processor attr_reader :idtype def initialize @short = :relaton_iho @prefix = "IHO" @defaultprefix = %r{^IHO\s} @idtype = "IHO" end # @param code [String] # @param date [String, NilClass] year # @param opts [Hash] # @return [RelatonIho::IhoBibliographicItem] def get(code, date, opts) ::RelatonIho::IhoBibliography.get(code, date, opts) end # @param xml [String] # @return [RelatonIho::IhoBibliographicItem] def from_xml(xml) ::RelatonIho::XMLParser.from_xml xml end # @param hash [Hash] # @return [RelatonIho::IhoBibliographicItem] def hash_to_bib(hash) ::RelatonIho::IhoBibliographicItem.new hash end # Returns hash of XML grammar # @return [String] def grammar_hash @grammar_hash ||= ::RelatonIho.grammar_hash end # # Remove index file # def remove_index_file Relaton::Index.find_or_create(:IHO, url: true).remove_file end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
relaton-iho-1.14.3 | lib/relaton_iho/processor.rb |