Class: Exlibris::Aleph::Patron::Record::Item::CirculationPolicy
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Patron::Record::Item::CirculationPolicy
- Defined in:
- lib/exlibris/aleph/patron/record/item/circulation_policy.rb,
lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb
Defined Under Namespace
Classes: Privileges
Instance Attribute Summary collapse
-
#pickup_locations ⇒ Object
readonly
Returns the value of attribute pickup_locations.
-
#privileges ⇒ Object
readonly
Returns the value of attribute privileges.
Instance Method Summary collapse
-
#initialize(privileges, *pickup_locations) ⇒ CirculationPolicy
constructor
A new instance of CirculationPolicy.
Constructor Details
#initialize(privileges, *pickup_locations) ⇒ CirculationPolicy
Returns a new instance of CirculationPolicy.
9 10 11 12 13 14 15 |
# File 'lib/exlibris/aleph/patron/record/item/circulation_policy.rb', line 9 def initialize(privileges, *pickup_locations) unless privileges.is_a?(Privileges) raise ArgumentError.new("Expecting #{privileges} to be a Privileges") end @privileges = privileges @pickup_locations = pickup_locations end |
Instance Attribute Details
#pickup_locations ⇒ Object (readonly)
Returns the value of attribute pickup_locations.
7 8 9 |
# File 'lib/exlibris/aleph/patron/record/item/circulation_policy.rb', line 7 def pickup_locations @pickup_locations end |
#privileges ⇒ Object (readonly)
Returns the value of attribute privileges.
7 8 9 |
# File 'lib/exlibris/aleph/patron/record/item/circulation_policy.rb', line 7 def privileges @privileges end |