Class: Exlibris::Aleph::Item::Queue
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Item::Queue
- Defined in:
- lib/exlibris/aleph/item/queue.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ Queue
constructor
A new instance of Queue.
- #number_of_requests ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(value) ⇒ Queue
Returns a new instance of Queue.
7 8 9 |
# File 'lib/exlibris/aleph/item/queue.rb', line 7 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/exlibris/aleph/item/queue.rb', line 5 def value @value end |
Instance Method Details
#number_of_requests ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/exlibris/aleph/item/queue.rb', line 15 def number_of_requests @number_of_requests ||= begin if number_of_requests_matched_data.nil? 0 else number_of_requests_matched_data[1].to_i end end end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/exlibris/aleph/item/queue.rb', line 11 def to_s value end |