Sha256: 12f3e2578c915bcc90e8f3ce550f6f2f5283bed204b8ae9d2ef8f31937044640

Contents?: true

Size: 455 Bytes

Versions: 3

Compression:

Stored size: 455 Bytes

Contents

module Exlibris
  module Aleph
    class Item
      class ProcessingStatus
        attr_reader :code, :display

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

        def to_s
          (display || code)
        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/item/processing_status.rb
exlibris-aleph-2.0.3 lib/exlibris/aleph/item/processing_status.rb
exlibris-aleph-2.0.0 lib/exlibris/aleph/item/processing_status.rb