Sha256: 2941f3fe29241d73c723dfc43f0c7c12ef7f8d73005ae90e48f053091740c12b
Contents?: true
Size: 840 Bytes
Versions: 1
Compression:
Stored size: 840 Bytes
Contents
module Exlibris module Aleph module Table module Reader class Collections < Base FILENAME = 'tab40.eng' def initialize(admin_library) super(admin_library, FILENAME) end def all rows.map do |row| sub_library = sub_libraries.find do |sub_library| sub_library.code == row.sub_library_code end unless sub_library.nil? Collection.new(row.code, row.display, sub_library) end end end private def sub_libraries @sub_libraries ||= tables_manager.sub_libraries end def tables_manager @tables_manager ||= Aleph::TablesManager.instance end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exlibris-aleph-2.0.0 | lib/exlibris/aleph/table/reader/collections.rb |