Class: Exlibris::Aleph::Patron

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#idObject (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

#addressObject



14
15
16
# File 'lib/exlibris/aleph/patron.rb', line 14

def address
  @address ||= Address.new(id)
end

#admin_libraryObject



10
11
12
# File 'lib/exlibris/aleph/patron.rb', line 10

def admin_library
  @admin_library ||= AdminLibrary.new(reader.admin_library_code)
end

#record(record_id) ⇒ Object



18
19
20
# File 'lib/exlibris/aleph/patron.rb', line 18

def record(record_id)
  Record.new(id, record_id)
end