Sha256: c6a77f3412ac70e3111740f0e2ca442a01e35a67a029d9ac7a96cdb6a874c96b
Contents?: true
Size: 857 Bytes
Versions: 5
Compression:
Stored size: 857 Bytes
Contents
require "relaton/processor" module RelatonOgc class Processor < Relaton::Processor def initialize @short = :relaton_ogc @prefix = "OGC" @defaultprefix = %r{^OGC\s} @idtype = "OGC" end # @param code [String] # @param date [String, NilClass] year # @param opts [Hash] # @return [RelatonOgc::OgcBibliographicItem] def get(code, date = nil, opts = {}) ::RelatonOgc::OgcBibliography.get(code, date, opts) end # @param xml [String] # @return [RelatonOgc::OgcBibliographicItem] def from_xml(xml) ::RelatonOgc::XMLParser.from_xml xml end # @param hash [Hash] # @return [RelatonOgc::OgcBibliographicItem] def hash_to_bib(hash) item_hash = ::RelatonOgc::HashConverter.hash_to_bib(hash) ::RelatonOgc::OgcBibliographicItem.new item_hash end end end
Version data entries
5 entries across 5 versions & 1 rubygems