Class: Exlibris::Aleph::Patron::Record::CirculationPolicy

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#privilegesObject (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