Class: Relaton::NistBib::Processor
- Inherits:
-
Processor
- Object
- Processor
- Relaton::NistBib::Processor
- Defined in:
- lib/relaton/processor.rb
Instance Method Summary collapse
- #from_xml(xml) ⇒ Object
- #get(code, date = nil, opts = {}) ⇒ Object
-
#initialize ⇒ Processor
constructor
A new instance of Processor.
Constructor Details
#initialize ⇒ Processor
Returns a new instance of Processor.
7 8 9 10 11 12 |
# File 'lib/relaton/processor.rb', line 7 def initialize @short = :nistbib @prefix = "NIST" @defaultprefix = %r{^(NIST|NISTGCR|ITL Bulletin|JPCRD|NISTIR|CSRC)[ /]} @idtype = "NIST" end |
Instance Method Details
#from_xml(xml) ⇒ Object
18 19 20 |
# File 'lib/relaton/processor.rb', line 18 def from_xml(xml) ::NistBib::XMLParser.from_xml xml end |
#get(code, date = nil, opts = {}) ⇒ Object
14 15 16 |
# File 'lib/relaton/processor.rb', line 14 def get(code, date = nil, opts = {}) ::NistBib::NistBibliography.get(code, date, opts) end |