class Exlibris::Aleph::Item::CirculationPolicy
Attributes
display[R]
identifier[R]
privileges[R]
Public Class Methods
new(identifier, display, privileges)
click to toggle source
# File lib/exlibris/aleph/item/circulation_policy.rb, line 7 def initialize(identifier, display, privileges) unless identifier.is_a?(Identifier) raise ArgumentError.new("Expecting #{identifier} to be a Item::CirculationPolicy::Identifier") end unless display.is_a?(Display) raise ArgumentError.new("Expecting #{identifier} to be a Item::CirculationPolicy::Display") end unless privileges.is_a?(Privileges) raise ArgumentError.new("Expecting #{privileges} to be a Item::CirculationPolicy::Privileges") end @identifier = identifier @display = display @privileges = privileges end
Public Instance Methods
==(other_object)
click to toggle source
# File lib/exlibris/aleph/item/circulation_policy.rb, line 22 def ==(other_object) (other_object.instance_of?(self.class) && identifier == other_object.identifier) end
Also aliased as: eql?