Class: Relaton::RelatonGb::Processor
- Inherits:
-
Processor
- Object
- Processor
- Relaton::RelatonGb::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
Returns a new instance of Processor.
8 9 10 11 12 13 |
# File 'lib/relaton/processor.rb', line 8 def initialize @short = :relaton_gb @prefix = "CN" @defaultprefix = %r{^GB } @idtype = "Chinese Standard" end |
Instance Method Details
#from_xml(xml) ⇒ Object
19 20 21 |
# File 'lib/relaton/processor.rb', line 19 def from_xml(xml) ::RelatonGb::XMLParser.from_xml xml end |
#get(code, date, opts) ⇒ Object
15 16 17 |
# File 'lib/relaton/processor.rb', line 15 def get(code, date, opts) ::RelatonGb::GbBibliography.get(code, date, opts) end |