Class: Iev::RelatonDb
- Inherits:
-
Object
- Object
- Iev::RelatonDb
- Includes:
- Cli::Ui, Singleton
- Defined in:
- lib/iev/relaton_db.rb
Overview
Relaton cach singleton.
Instance Method Summary collapse
- #fetch(code) ⇒ RelatonIso::IsoBibliongraphicItem
-
#initialize ⇒ RelatonDb
constructor
A new instance of RelatonDb.
Methods included from Cli::Ui
debug, info, progress, set_ui_tag, warn
Constructor Details
#initialize ⇒ RelatonDb
Returns a new instance of RelatonDb.
14 15 16 17 |
# File 'lib/iev/relaton_db.rb', line 14 def initialize info "Initializing Relaton..." @db = Relaton::Db.new "db", nil end |
Instance Method Details
#fetch(code) ⇒ RelatonIso::IsoBibliongraphicItem
21 22 23 24 25 26 27 |
# File 'lib/iev/relaton_db.rb', line 21 def fetch(code) do capture_output_streams do @db.fetch code end end end |