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