Class: Exlibris::Aleph::Patron::Record::Item::CirculationPolicy::Privileges

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(privileges) ⇒ Privileges

Returns a new instance of Privileges.



11
12
13
14
15
16
# File 'lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb', line 11

def initialize(privileges)
  @hold_request = privileges.hold_request
  @short_loan = privileges.short_loan
  @photocopy_request = privileges.photocopy_request
  @booking_request = privileges.booking_request
end

Instance Attribute Details

#booking_requestObject (readonly)

Returns the value of attribute booking_request.



8
9
10
# File 'lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.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/patron/record/item/circulation_policy/privileges.rb', line 8

def hold_request
  @hold_request
end

#photocopy_requestObject (readonly)

Returns the value of attribute photocopy_request.



8
9
10
# File 'lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb', line 8

def photocopy_request
  @photocopy_request
end

#short_loanObject (readonly)

Returns the value of attribute short_loan.



8
9
10
# File 'lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb', line 8

def short_loan
  @short_loan
end

Instance Method Details

#booking_request?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb', line 30

def booking_request?
  booking_request == 'Y'
end

#hold_request?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb', line 18

def hold_request?
  hold_request == 'Y'
end

#photocopy_request?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb', line 26

def photocopy_request?
  photocopy_request == 'Y'
end

#short_loan?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb', line 22

def short_loan?
  short_loan == 'Y'
end