Sha256: 308bef5e8cc86bc1bc247bb9bc99a7a130265f9c6c5c6c7b07e862ab5b321988
Contents?: true
Size: 1.28 KB
Versions: 3
Compression:
Stored size: 1.28 KB
Contents
module Exlibris module Aleph class Patron class CirculationPolicy class Privileges attr_reader :borrow, :photocopy, :request, :request_multiple, :request_on_shelf, :renew, :book, :rush_cataloging 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 def can_borrow? borrow == 'Y' end def can_photocopy? photocopy == 'Y' end def can_request? request == 'Y' end def can_request_multiple? request_multiple == 'Y' end def can_request_on_shelf? request_on_shelf == 'Y' end def can_renew? renew == 'Y' end def can_book? book == 'Y' end def can_rush_cataloging? rush_cataloging == 'Y' end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems