Class: Exlibris::Aleph::Patron
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Patron
- Defined in:
- lib/exlibris/aleph/patron.rb,
lib/exlibris/aleph/patron/record.rb,
lib/exlibris/aleph/patron/status.rb,
lib/exlibris/aleph/patron/address.rb,
lib/exlibris/aleph/patron/record/item.rb,
lib/exlibris/aleph/patron/record/item/hold.rb,
lib/exlibris/aleph/patron/circulation_policy.rb,
lib/exlibris/aleph/patron/record/item/create_hold.rb,
lib/exlibris/aleph/patron/record/circulation_policy.rb,
lib/exlibris/aleph/patron/circulation_policy/identifier.rb,
lib/exlibris/aleph/patron/circulation_policy/privileges.rb,
lib/exlibris/aleph/patron/record/item/circulation_policy.rb,
lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb,
lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb
Defined Under Namespace
Classes: Address, CirculationPolicy, Record, Status
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
- #address ⇒ Object
- #admin_library ⇒ Object
-
#initialize(id) ⇒ Patron
constructor
A new instance of Patron.
- #record(record_id) ⇒ Object
Constructor Details
#initialize(id) ⇒ Patron
Returns a new instance of Patron.
6 7 8 |
# File 'lib/exlibris/aleph/patron.rb', line 6 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/exlibris/aleph/patron.rb', line 4 def id @id end |
Instance Method Details
#address ⇒ Object
14 15 16 |
# File 'lib/exlibris/aleph/patron.rb', line 14 def address @address ||= Address.new(id) end |
#admin_library ⇒ Object
10 11 12 |
# File 'lib/exlibris/aleph/patron.rb', line 10 def admin_library @admin_library ||= AdminLibrary.new(reader.admin_library_code) end |