Class: Exlibris::Aleph::Patron::Record::Item::CirculationPolicy::Privileges
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Patron::Record::Item::CirculationPolicy::Privileges
- Defined in:
- lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb
Instance Attribute Summary collapse
-
#booking_request ⇒ Object
readonly
Returns the value of attribute booking_request.
-
#hold_request ⇒ Object
readonly
Returns the value of attribute hold_request.
-
#photocopy_request ⇒ Object
readonly
Returns the value of attribute photocopy_request.
-
#short_loan ⇒ Object
readonly
Returns the value of attribute short_loan.
Instance Method Summary collapse
- #booking_request? ⇒ Boolean
- #hold_request? ⇒ Boolean
-
#initialize(privileges) ⇒ Privileges
constructor
A new instance of Privileges.
- #photocopy_request? ⇒ Boolean
- #short_loan? ⇒ Boolean
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_request ⇒ Object (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_request ⇒ Object (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_request ⇒ Object (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_loan ⇒ Object (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
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
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
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
22 23 24 |
# File 'lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb', line 22 def short_loan? short_loan == 'Y' end |