Class: Relaton::Gbbib::Processor
- Inherits:
-
Processor
- Object
- Processor
- Relaton::Gbbib::Processor
- Defined in:
- lib/relaton/processor.rb
Instance Method Summary collapse
- #from_xml(xml) ⇒ Object
- #get(code, date, opts) ⇒ Object
-
#initialize ⇒ Processor
constructor
A new instance of Processor.
Constructor Details
#initialize ⇒ Processor
9 10 11 12 13 14 |
# File 'lib/relaton/processor.rb', line 9 def initialize @short = :gbbib @prefix = "CN" @defaultprefix = %r{^GB } @idtype = "Chinese Standard" end |
Instance Method Details
#from_xml(xml) ⇒ Object
20 21 22 |
# File 'lib/relaton/processor.rb', line 20 def from_xml(xml) ::Gbbib::XMLParser.from_xml xml end |
#get(code, date, opts) ⇒ Object
16 17 18 |
# File 'lib/relaton/processor.rb', line 16 def get(code, date, opts) ::Gbbib::GbBibliography.get(code, date, opts) end |