Class: Exlibris::Aleph::Patron::Record

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

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/exlibris/aleph/patron/record.rb', line 5

def id
  @id
end

#patron_idObject (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_policyObject



12
13
14
# File 'lib/exlibris/aleph/patron/record.rb', line 12

def circulation_policy
  @circulation_policy ||= CirculationPolicy.new(privileges)
end

#item(item_id) ⇒ Object



16
17
18
# File 'lib/exlibris/aleph/patron/record.rb', line 16

def item(item_id)
  Item.new(patron_id, id, item_id)
end