Sha256: d6baee3f7b89d9b7ba0eab1bf75c130d97ac24e94d0af9d19dbe4a44a14116e8

Contents?: true

Size: 1019 Bytes

Versions: 3

Compression:

Stored size: 1019 Bytes

Contents

module Exlibris
  module Aleph
    class Patron
      class Record
        class CirculationPolicy
          class Privileges
            attr_reader :hold_request, :short_loan, :ill, 
              :booking_request, :acquisition_request

            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

            def hold_request?
              hold_request == 'Y'
            end

            def short_loan?
              short_loan == 'Y'
            end

            def ill?
              ill == 'Y'
            end

            def booking_request?
              booking_request == 'Y'
            end

            def acquisition_request?
              acquisition_request == 'Y'
            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/circulation_policy/privileges.rb
exlibris-aleph-2.0.3 lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb
exlibris-aleph-2.0.0 lib/exlibris/aleph/patron/record/circulation_policy/privileges.rb