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

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

Instance Method Summary collapse

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_locationsObject (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

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