class Relaton::Processor
Attributes
datasets[R]
@return [Array<String>]
defaultprefix[R]
@return [Regexp]
idtype[R]
@return [String]
prefix[R]
@return [String]
short[R]
@rerurn [Symbol]
Public Class Methods
new()
click to toggle source
# File lib/relaton/processor.rb, line 15 def initialize raise "This is an abstract class!" end
Public Instance Methods
fetch_data(_source, _opts)
click to toggle source
# File lib/relaton/processor.rb, line 23 def fetch_data(_source, _opts) raise "This is an abstract class!" end
from_xml(_xml)
click to toggle source
# File lib/relaton/processor.rb, line 27 def from_xml(_xml) raise "This is an abstract class!" end
get(_code, _date, _opts)
click to toggle source
# File lib/relaton/processor.rb, line 19 def get(_code, _date, _opts) raise "This is an abstract class!" end
grammar_hash()
click to toggle source
# File lib/relaton/processor.rb, line 35 def grammar_hash raise "This is an abstract class!" end
hash_to_bib(_hash)
click to toggle source
# File lib/relaton/processor.rb, line 31 def hash_to_bib(_hash) raise "This is an abstract class!" end
threads()
click to toggle source
Retuns default number of workers. Should be overraded by childred classes if need.
@return [Integer] nuber of wokrers
# File lib/relaton/processor.rb, line 42 def threads 10 end