Class: Tc211::Termbase::RelatonDb

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/tc211/termbase/relaton_db.rb

Overview

Relaton cach singleton.

Instance Method Summary collapse

Constructor Details

#initializeRelatonDb

Returns a new instance of RelatonDb.



10
11
12
# File 'lib/tc211/termbase/relaton_db.rb', line 10

def initialize
  @db = Relaton::Db.new "db", nil
end

Instance Method Details

#fetch(code) ⇒ RelatonIso::IsoBibliongraphicItem

Parameters:

  • code (String)

    reference

Returns:

  • (RelatonIso::IsoBibliongraphicItem)


16
17
18
# File 'lib/tc211/termbase/relaton_db.rb', line 16

def fetch(code)
  @db.fetch code
end