class RelatonItu::Processor
Public Class Methods
new()
click to toggle source
# File lib/relaton_itu/processor.rb, line 5 def initialize @short = :relaton_itu @prefix = "ITU" @defaultprefix = %r{^ITU\s} @idtype = "ITU" end
Public Instance Methods
from_xml(xml)
click to toggle source
@param xml [String] @return [RelatonItu::ItuBibliographicItem]
# File lib/relaton_itu/processor.rb, line 22 def from_xml(xml) ::RelatonItu::XMLParser.from_xml xml end
get(code, date, opts)
click to toggle source
@param code [String] @param date [String, NilClass] year @param opts [Hash] @return [RelatonItu::ItuBibliographicItem]
# File lib/relaton_itu/processor.rb, line 16 def get(code, date, opts) ::RelatonItu::ItuBibliography.get(code, date, opts) end
grammar_hash()
click to toggle source
Returns hash of XML grammar @return [String]
# File lib/relaton_itu/processor.rb, line 34 def grammar_hash @grammar_hash ||= ::RelatonItu.grammar_hash end
hash_to_bib(hash)
click to toggle source
@param hash [Hash] @return [RelatonItu::ItuBibliographicItem]
# File lib/relaton_itu/processor.rb, line 28 def hash_to_bib(hash) ::RelatonItu::ItuBibliographicItem.from_hash hash end