Class: Exlibris::Aleph::Patron::Record::Item::Hold

Inherits:
Object
  • Object
show all
Defined in:
lib/exlibris/aleph/patron/record/item/hold.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (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_idObject (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_idObject (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

Returns:

  • (Boolean)


19
20
21
# File 'lib/exlibris/aleph/patron/record/item/hold.rb', line 19

def allowed?
  reader.allowed == 'Y'
end

#pickup_locationsObject



15
16
17
# File 'lib/exlibris/aleph/patron/record/item/hold.rb', line 15

def pickup_locations
  @pickup_locations ||= reader.pickup_locations
end