Class: Exlibris::Aleph::Table::Reader::PatronStatuses

Inherits:
Base
  • Object
show all
Defined in:
lib/exlibris/aleph/table/reader/patron_statuses.rb

Constant Summary collapse

FILENAME =
'pc_tab_exp_field_extended.eng'

Instance Attribute Summary

Attributes inherited from Base

#admin_library, #filename

Instance Method Summary collapse

Constructor Details

#initialize(admin_library) ⇒ PatronStatuses

Returns a new instance of PatronStatuses.



8
9
10
# File 'lib/exlibris/aleph/table/reader/patron_statuses.rb', line 8

def initialize(admin_library)
  super(admin_library, FILENAME)
end

Instance Method Details

#allObject



12
13
14
# File 'lib/exlibris/aleph/table/reader/patron_statuses.rb', line 12

def all
  rows.map { |row| Aleph::Patron::Status.new(row.code, row.display) }
end