Sha256: d721c1132d940a3d1d9b6a63e3ebc73c9848fdbb971d1dcfc0a65e0e96a93e41

Contents?: true

Size: 389 Bytes

Versions: 3

Compression:

Stored size: 389 Bytes

Contents

module Exlibris
  module Aleph
    class Patron
      class Status
        attr_reader :code, :display

        def initialize(code, display=nil)
          @code = code
          @display = display
        end

        def ==(other_object)
          other_object.instance_of?(self.class) && code == other_object.code
        end
        alias_method :eql?, :==
      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/status.rb
exlibris-aleph-2.0.3 lib/exlibris/aleph/patron/status.rb
exlibris-aleph-2.0.0 lib/exlibris/aleph/patron/status.rb