Class: Exlibris::Aleph::Item::ProcessingStatus
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Item::ProcessingStatus
- Defined in:
- lib/exlibris/aleph/item/processing_status.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
-
#display ⇒ Object
readonly
Returns the value of attribute display.
Instance Method Summary collapse
- #==(other_object) ⇒ Object (also: #eql?)
-
#initialize(code, display = nil) ⇒ ProcessingStatus
constructor
A new instance of ProcessingStatus.
- #to_s ⇒ Object
Constructor Details
#initialize(code, display = nil) ⇒ ProcessingStatus
Returns a new instance of ProcessingStatus.
7 8 9 10 |
# File 'lib/exlibris/aleph/item/processing_status.rb', line 7 def initialize(code, display=nil) @code = code @display = display end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
5 6 7 |
# File 'lib/exlibris/aleph/item/processing_status.rb', line 5 def code @code end |
#display ⇒ Object (readonly)
Returns the value of attribute display.
5 6 7 |
# File 'lib/exlibris/aleph/item/processing_status.rb', line 5 def display @display end |
Instance Method Details
#==(other_object) ⇒ Object Also known as: eql?
16 17 18 |
# File 'lib/exlibris/aleph/item/processing_status.rb', line 16 def ==(other_object) other_object.instance_of?(self.class) && code == other_object.code end |
#to_s ⇒ Object
12 13 14 |
# File 'lib/exlibris/aleph/item/processing_status.rb', line 12 def to_s (display || code) end |