Sha256: ea9597edde7f2dba22277106a9cb0fa0f2c04676ae6afd4e728054c0a4ff6083
Contents?: true
Size: 445 Bytes
Versions: 3
Compression:
Stored size: 445 Bytes
Contents
module Exlibris module Aleph class Item class Status 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/status.rb |
exlibris-aleph-2.0.3 | lib/exlibris/aleph/item/status.rb |
exlibris-aleph-2.0.0 | lib/exlibris/aleph/item/status.rb |