Sha256: 9a334349a8507814904b7a7271cd2f397a6dcfb16fe7ba9a5dfa67bb4a124798

Contents?: true

Size: 886 Bytes

Versions: 45

Compression:

Stored size: 886 Bytes

Contents

module Relaton
  class Processor
    # @rerurn [Symbol]
    attr_reader :short

    # @return [String]
    attr_reader :prefix, :idtype

    # @return [Regexp]
    attr_reader :defaultprefix

    # @return [Array<String>]
    attr_reader :datasets

    def initialize
      raise "This is an abstract class!"
    end

    def get(_code, _date, _opts)
      raise "This is an abstract class!"
    end

    def fetch_data(_source, _opts)
      raise "This is an abstract class!"
    end

    def from_xml(_xml)
      raise "This is an abstract class!"
    end

    def hash_to_bib(_hash)
      raise "This is an abstract class!"
    end

    def grammar_hash
      raise "This is an abstract class!"
    end

    # Retuns default number of workers. Should be overraded by childred classes if need.
    #
    # @return [Integer] nuber of wokrers
    def threads
      10
    end
  end
end

Version data entries

45 entries across 45 versions & 1 rubygems

Version Path
relaton-1.14.0 lib/relaton/processor.rb
relaton-1.13.0 lib/relaton/processor.rb
relaton-1.12.4 lib/relaton/processor.rb
relaton-1.12.3 lib/relaton/processor.rb
relaton-1.12.2 lib/relaton/processor.rb
relaton-1.12.1 lib/relaton/processor.rb
relaton-1.12.0 lib/relaton/processor.rb
relaton-1.11.5 lib/relaton/processor.rb
relaton-1.11.4 lib/relaton/processor.rb
relaton-1.11.3 lib/relaton/processor.rb
relaton-1.11.2 lib/relaton/processor.rb
relaton-1.11.1 lib/relaton/processor.rb
relaton-1.11.0 lib/relaton/processor.rb
relaton-1.10.3 lib/relaton/processor.rb
relaton-1.10.2 lib/relaton/processor.rb
relaton-1.10.1 lib/relaton/processor.rb
relaton-1.10.0 lib/relaton/processor.rb
relaton-1.9.8 lib/relaton/processor.rb
relaton-1.9.7 lib/relaton/processor.rb
relaton-1.9.6 lib/relaton/processor.rb