Sha256: 919e8f7ef433548ef238a989c3d8dee089a4b3eec3dbec81c1f5229188e112f3

Contents?: true

Size: 982 Bytes

Versions: 3

Compression:

Stored size: 982 Bytes

Contents

module Exlibris
  module Aleph
    class Patron
      class Record
        class Item
          class CirculationPolicy
            class Privileges
              attr_reader :hold_request, :short_loan, :photocopy_request,
                :booking_request

              def initialize(privileges)
                @hold_request = privileges.hold_request
                @short_loan = privileges.short_loan
                @photocopy_request = privileges.photocopy_request
                @booking_request = privileges.booking_request
              end

              def hold_request?
                hold_request == 'Y'
              end

              def short_loan?
                short_loan == 'Y'
              end

              def photocopy_request?
                photocopy_request == 'Y'
              end

              def booking_request?
                booking_request == 'Y'
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
exlibris-aleph-2.0.4 lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb
exlibris-aleph-2.0.3 lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb
exlibris-aleph-2.0.0 lib/exlibris/aleph/patron/record/item/circulation_policy/privileges.rb