Class: Exlibris::Aleph::Patron::Record::CirculationPolicy::Privileges
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Patron::Record::CirculationPolicy::Privileges
- Defined in:
- lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb
Instance Attribute Summary collapse
-
#acquisition_request ⇒ Object
readonly
Returns the value of attribute acquisition_request.
-
#booking_request ⇒ Object
readonly
Returns the value of attribute booking_request.
-
#hold_request ⇒ Object
readonly
Returns the value of attribute hold_request.
-
#ill ⇒ Object
readonly
Returns the value of attribute ill.
-
#short_loan ⇒ Object
readonly
Returns the value of attribute short_loan.
Instance Method Summary collapse
- #acquisition_request? ⇒ Boolean
- #booking_request? ⇒ Boolean
- #hold_request? ⇒ Boolean
- #ill? ⇒ Boolean
-
#initialize(privileges) ⇒ Privileges
constructor
A new instance of Privileges.
- #short_loan? ⇒ Boolean
Constructor Details
#initialize(privileges) ⇒ Privileges
Returns a new instance of Privileges.
10 11 12 13 14 15 16 |
# File 'lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb', line 10 def initialize(privileges) @hold_request = privileges.hold_request @short_loan = privileges.short_loan @ill = privileges.ill @booking_request = privileges.booking_request @acquisition_request = privileges.acquisition_request end |
Instance Attribute Details
#acquisition_request ⇒ Object (readonly)
Returns the value of attribute acquisition_request.
7 8 9 |
# File 'lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb', line 7 def acquisition_request @acquisition_request end |
#booking_request ⇒ Object (readonly)
Returns the value of attribute booking_request.
7 8 9 |
# File 'lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb', line 7 def booking_request @booking_request end |
#hold_request ⇒ Object (readonly)
Returns the value of attribute hold_request.
7 8 9 |
# File 'lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb', line 7 def hold_request @hold_request end |
#ill ⇒ Object (readonly)
Returns the value of attribute ill.
7 8 9 |
# File 'lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb', line 7 def ill @ill end |
#short_loan ⇒ Object (readonly)
Returns the value of attribute short_loan.
7 8 9 |
# File 'lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb', line 7 def short_loan @short_loan end |
Instance Method Details
#acquisition_request? ⇒ Boolean
34 35 36 |
# File 'lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb', line 34 def acquisition_request? acquisition_request == 'Y' end |
#booking_request? ⇒ Boolean
30 31 32 |
# File 'lib/exlibris/aleph/patron/record/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/circulation_policy/privileges.rb', line 18 def hold_request? hold_request == 'Y' end |
#ill? ⇒ Boolean
26 27 28 |
# File 'lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb', line 26 def ill? ill == 'Y' end |
#short_loan? ⇒ Boolean
22 23 24 |
# File 'lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb', line 22 def short_loan? short_loan == 'Y' end |