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

Inherits:
Object
  • Object
show all
Defined in:
lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#illObject (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_loanObject (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

Returns:

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

Returns:

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

Returns:

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

Returns:

  • (Boolean)


26
27
28
# File 'lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb', line 26

def ill?
  ill == 'Y'
end

#short_loan?Boolean

Returns:

  • (Boolean)


22
23
24
# File 'lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb', line 22

def short_loan?
  short_loan == 'Y'
end