Class: Glossarist::Collections::BibliographyCollection

Inherits:
Relaton::Db
  • Object
show all
Defined in:
lib/glossarist/collections/bibliography_collection.rb

Instance Method Summary collapse

Constructor Details

#initialize(_concepts, global_cache, local_cache) ⇒ BibliographyCollection

Returns a new instance of BibliographyCollection.



8
9
10
11
12
# File 'lib/glossarist/collections/bibliography_collection.rb', line 8

def initialize(_concepts, global_cache, local_cache)
  @version_mismatch = check_cache_version(local_cache) ||
                      check_cache_version(global_cache)
  super(global_cache, local_cache)
end

Instance Method Details

#fetch_allObject

Raises:

  • (@version_mismatch)


14
15
16
17
18
# File 'lib/glossarist/collections/bibliography_collection.rb', line 14

def fetch_all(...)
  raise @version_mismatch if @version_mismatch

  super
end