Class: Relaton::ItuBib::Processor

Inherits:
Processor
  • Object
show all
Defined in:
lib/relaton/processor.rb

Instance Method Summary collapse

Constructor Details

#initializeProcessor

Returns a new instance of Processor.



7
8
9
10
11
12
# File 'lib/relaton/processor.rb', line 7

def initialize
  @short = :itubib
  @prefix = "ITU"
  @defaultprefix = %r{^(ITU)}
  @idtype = "ITU"
end

Instance Method Details

#from_xml(xml) ⇒ Object



18
19
20
# File 'lib/relaton/processor.rb', line 18

def from_xml(xml)
  IsoBibItem::XMLParser.from_xml xml
end

#get(code, date, opts) ⇒ Object



14
15
16
# File 'lib/relaton/processor.rb', line 14

def get(code, date, opts)
  ::ItuBib::ItuBliography.get(code, date, opts)
end