Class: Exlibris::Aleph::API::Reader::Patron::Record

Inherits:
Base
  • Object
show all
Defined in:
lib/exlibris/aleph/api/reader/patron/record.rb,
lib/exlibris/aleph/api/reader/patron/record/item.rb,
lib/exlibris/aleph/api/reader/patron/record/item/hold.rb,
lib/exlibris/aleph/api/reader/patron/record/item/create_hold.rb

Defined Under Namespace

Classes: Item

Instance Attribute Summary collapse

Attributes inherited from Base

#root

Instance Method Summary collapse

Constructor Details

#initialize(root) ⇒ Record

Returns a new instance of Record.



11
12
13
14
15
16
17
18
# File 'lib/exlibris/aleph/api/reader/patron/record.rb', line 11

def initialize(root)
  super(root)
  @hold_request = privilege_for_type('HoldRequest')
  @short_loan = privilege_for_type('ShortLoan')
  @ill = privilege_for_type('ILL')
  @booking_request = privilege_for_type('BookingRequest')
  @acquisition_request = privilege_for_type('AcquisitionRequest')
end

Instance Attribute Details

#acquisition_requestObject (readonly)

Returns the value of attribute acquisition_request.



8
9
10
# File 'lib/exlibris/aleph/api/reader/patron/record.rb', line 8

def acquisition_request
  @acquisition_request
end

#booking_requestObject (readonly)

Returns the value of attribute booking_request.



8
9
10
# File 'lib/exlibris/aleph/api/reader/patron/record.rb', line 8

def booking_request
  @booking_request
end

#hold_requestObject (readonly)

Returns the value of attribute hold_request.



8
9
10
# File 'lib/exlibris/aleph/api/reader/patron/record.rb', line 8

def hold_request
  @hold_request
end

#illObject (readonly)

Returns the value of attribute ill.



8
9
10
# File 'lib/exlibris/aleph/api/reader/patron/record.rb', line 8

def ill
  @ill
end

#short_loanObject (readonly)

Returns the value of attribute short_loan.



8
9
10
# File 'lib/exlibris/aleph/api/reader/patron/record.rb', line 8

def short_loan
  @short_loan
end