Class: Tc211::Termbase::RelatonDb
- Inherits:
-
Object
- Object
- Tc211::Termbase::RelatonDb
- Includes:
- Singleton
- Defined in:
- lib/tc211/termbase/relaton_db.rb
Overview
Relaton cach singleton.
Instance Method Summary collapse
- #fetch(code) ⇒ RelatonIso::IsoBibliongraphicItem
-
#initialize ⇒ RelatonDb
constructor
A new instance of RelatonDb.
Constructor Details
#initialize ⇒ RelatonDb
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
16 17 18 |
# File 'lib/tc211/termbase/relaton_db.rb', line 16 def fetch(code) @db.fetch code end |