Class: Exlibris::Aleph::Patron::Record::Item::Hold
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Patron::Record::Item::Hold
- Defined in:
- lib/exlibris/aleph/patron/record/item/hold.rb
Instance Attribute Summary collapse
-
#item_id ⇒ Object
readonly
Returns the value of attribute item_id.
-
#patron_id ⇒ Object
readonly
Returns the value of attribute patron_id.
-
#record_id ⇒ Object
readonly
Returns the value of attribute record_id.
Instance Method Summary collapse
- #allowed? ⇒ Boolean
-
#initialize(patron_id, record_id, item_id) ⇒ Hold
constructor
A new instance of Hold.
- #pickup_locations ⇒ Object
Constructor Details
#initialize(patron_id, record_id, item_id) ⇒ Hold
Returns a new instance of Hold.
9 10 11 12 13 |
# File 'lib/exlibris/aleph/patron/record/item/hold.rb', line 9 def initialize(patron_id, record_id, item_id) @patron_id = patron_id @record_id = record_id @item_id = item_id end |
Instance Attribute Details
#item_id ⇒ Object (readonly)
Returns the value of attribute item_id.
7 8 9 |
# File 'lib/exlibris/aleph/patron/record/item/hold.rb', line 7 def item_id @item_id end |
#patron_id ⇒ Object (readonly)
Returns the value of attribute patron_id.
7 8 9 |
# File 'lib/exlibris/aleph/patron/record/item/hold.rb', line 7 def patron_id @patron_id end |
#record_id ⇒ Object (readonly)
Returns the value of attribute record_id.
7 8 9 |
# File 'lib/exlibris/aleph/patron/record/item/hold.rb', line 7 def record_id @record_id end |
Instance Method Details
#allowed? ⇒ Boolean
19 20 21 |
# File 'lib/exlibris/aleph/patron/record/item/hold.rb', line 19 def allowed? reader.allowed == 'Y' end |
#pickup_locations ⇒ Object
15 16 17 |
# File 'lib/exlibris/aleph/patron/record/item/hold.rb', line 15 def pickup_locations @pickup_locations ||= reader.pickup_locations end |