class Exlibris::Aleph::Collection
Attributes
code[R]
display[R]
sub_library[R]
Public Class Methods
new(code, display, sub_library)
click to toggle source
# File lib/exlibris/aleph/collection.rb, line 6 def initialize(code, display, sub_library) unless sub_library.is_a?(SubLibrary) raise ArgumentError.new("Expecting #{sub_library} to be an SubLibrary") end @code = code @display = display @sub_library = sub_library end
Public Instance Methods
==(other_object)
click to toggle source
# File lib/exlibris/aleph/collection.rb, line 19 def ==(other_object) other_object.instance_of?(self.class) && code == other_object.code && sub_library == other_object.sub_library end
Also aliased as: eql?
to_s()
click to toggle source
# File lib/exlibris/aleph/collection.rb, line 15 def to_s display end