Class: Exlibris::Aleph::Patron::Record
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Patron::Record
- Defined in:
- lib/exlibris/aleph/patron/record.rb,
lib/exlibris/aleph/patron/record/item.rb,
lib/exlibris/aleph/patron/record/item/hold.rb,
lib/exlibris/aleph/patron/record/item/create_hold.rb,
lib/exlibris/aleph/patron/record/circulation_policy.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: CirculationPolicy, Item
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#patron_id ⇒ Object
readonly
Returns the value of attribute patron_id.
Instance Method Summary collapse
- #circulation_policy ⇒ Object
-
#initialize(patron_id, id) ⇒ Record
constructor
A new instance of Record.
- #item(item_id) ⇒ Object
Constructor Details
#initialize(patron_id, id) ⇒ Record
Returns a new instance of Record.
7 8 9 10 |
# File 'lib/exlibris/aleph/patron/record.rb', line 7 def initialize(patron_id, id) @patron_id = patron_id @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/exlibris/aleph/patron/record.rb', line 5 def id @id end |
#patron_id ⇒ Object (readonly)
Returns the value of attribute patron_id.
5 6 7 |
# File 'lib/exlibris/aleph/patron/record.rb', line 5 def patron_id @patron_id end |
Instance Method Details
#circulation_policy ⇒ Object
12 13 14 |
# File 'lib/exlibris/aleph/patron/record.rb', line 12 def circulation_policy @circulation_policy ||= CirculationPolicy.new(privileges) end |