class Exlibris::Aleph::Item::CirculationStatus
Attributes
value[R]
Public Class Methods
new(value)
click to toggle source
# File lib/exlibris/aleph/item/circulation_status.rb, line 7 def initialize(value) @value = value end
Public Instance Methods
==(other_object)
click to toggle source
# File lib/exlibris/aleph/item/circulation_status.rb, line 19 def ==(other_object) other_object.instance_of?(self.class) && value == other_object.value end
Also aliased as: eql?
due_date()
click to toggle source
# File lib/exlibris/aleph/item/circulation_status.rb, line 15 def due_date @due_date ||= due_date_match[0] unless due_date_match.nil? end
to_s()
click to toggle source
# File lib/exlibris/aleph/item/circulation_status.rb, line 11 def to_s value end
Private Instance Methods
due_date_match()
click to toggle source
# File lib/exlibris/aleph/item/circulation_status.rb, line 25 def due_date_match @due_date_match ||= value.match(/\d{2}\/\d{2}\/\d{2}/) end