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.19.2 lib/relaton/processor.rb
relaton-1.19.1 lib/relaton/processor.rb
relaton-1.19.0 lib/relaton/processor.rb
relaton-1.18.2 lib/relaton/processor.rb
relaton-1.18.1 lib/relaton/processor.rb
relaton-1.18.0 lib/relaton/processor.rb
relaton-1.17.2 lib/relaton/processor.rb
relaton-1.17.1 lib/relaton/processor.rb
relaton-1.17.0 lib/relaton/processor.rb
relaton-1.16.1 lib/relaton/processor.rb
relaton-1.16.0 lib/relaton/processor.rb
relaton-1.15.6 lib/relaton/processor.rb
relaton-1.15.5 lib/relaton/processor.rb
relaton-1.15.4 lib/relaton/processor.rb
relaton-1.15.3 lib/relaton/processor.rb
relaton-1.15.2 lib/relaton/processor.rb
relaton-1.15.1 lib/relaton/processor.rb
relaton-1.15.0 lib/relaton/processor.rb
relaton-1.14.2 lib/relaton/processor.rb
relaton-1.14.1 lib/relaton/processor.rb