Class: Caster::MetadataDatabase
- Inherits:
-
Object
- Object
- Caster::MetadataDatabase
- Includes:
- MetadataStore
- Defined in:
- lib/caster/metadata/metadata_database.rb
Instance Method Summary collapse
- #desc ⇒ Object
- #get_db_version(database) ⇒ Object
-
#initialize ⇒ MetadataDatabase
constructor
A new instance of MetadataDatabase.
- #save_db_version(database, version) ⇒ Object
Constructor Details
Instance Method Details
#desc ⇒ Object
14 15 16 |
# File 'lib/caster/metadata/metadata_database.rb', line 14 def desc 'external database' end |
#get_db_version(database) ⇒ Object
18 19 20 |
# File 'lib/caster/metadata/metadata_database.rb', line 18 def get_db_version database (@metadb)[database] rescue nil end |
#save_db_version(database, version) ⇒ Object
22 23 24 25 26 |
# File 'lib/caster/metadata/metadata_database.rb', line 22 def save_db_version database, version = (@metadb) [database] = version @metadb.save_doc end |