class Exlibris::Aleph::Patron::CirculationPolicy::Privileges

Attributes

book[R]
borrow[R]
photocopy[R]
renew[R]
request[R]
request_multiple[R]
request_on_shelf[R]
rush_cataloging[R]

Public Class Methods

new(privileges) click to toggle source
# File lib/exlibris/aleph/patron/circulation_policy/privileges.rb, line 10
def initialize(privileges)
  @borrow = privileges.borrow
  @photocopy = privileges.photocopy
  @request = privileges.request
  @request_multiple = privileges.request_multiple
  @request_on_shelf = privileges.request_on_shelf
  @renew = privileges.renew
  @book = privileges.book
  @rush_cataloging = privileges.rush_cataloging
end

Public Instance Methods

can_book?() click to toggle source
# File lib/exlibris/aleph/patron/circulation_policy/privileges.rb, line 45
def can_book?
  book == 'Y'
end
can_borrow?() click to toggle source
# File lib/exlibris/aleph/patron/circulation_policy/privileges.rb, line 21
def can_borrow?
  borrow == 'Y'
end
can_photocopy?() click to toggle source
# File lib/exlibris/aleph/patron/circulation_policy/privileges.rb, line 25
def can_photocopy?
  photocopy == 'Y'
end
can_renew?() click to toggle source
# File lib/exlibris/aleph/patron/circulation_policy/privileges.rb, line 41
def can_renew?
  renew == 'Y'
end
can_request?() click to toggle source
# File lib/exlibris/aleph/patron/circulation_policy/privileges.rb, line 29
def can_request?
  request == 'Y'
end
can_request_multiple?() click to toggle source
# File lib/exlibris/aleph/patron/circulation_policy/privileges.rb, line 33
def can_request_multiple?
  request_multiple == 'Y'
end
can_request_on_shelf?() click to toggle source
# File lib/exlibris/aleph/patron/circulation_policy/privileges.rb, line 37
def can_request_on_shelf?
  request_on_shelf == 'Y'
end
can_rush_cataloging?() click to toggle source
# File lib/exlibris/aleph/patron/circulation_policy/privileges.rb, line 49
def can_rush_cataloging?
  rush_cataloging == 'Y'
end