Sha256: 06fb9e9991f5600e0e762ebc6c8354c7a30eb8e38f039b1483b5b449c2b39f6e
Contents?: true
Size: 842 Bytes
Versions: 3
Compression:
Stored size: 842 Bytes
Contents
module Exlibris module Aleph class Patron class CirculationPolicy class Identifier attr_reader :status, :sub_library def initialize(status, sub_library) unless status.is_a?(Status) raise ArgumentError.new("Expecting #{status} to be a Patron::Status") end unless sub_library.is_a?(SubLibrary) raise ArgumentError.new("Expecting #{sub_library} to be a SubLibrary") end @status = status @sub_library = sub_library end def ==(other_object) (other_object.instance_of?(self.class) && status == other_object.status && sub_library == other_object.sub_library) end alias_method :eql?, :== end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems