Class: Exlibris::Aleph::Item::Queue

Inherits:
Object
  • Object
show all
Defined in:
lib/exlibris/aleph/item/queue.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#valueObject (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_requestsObject



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_sObject



11
12
13
# File 'lib/exlibris/aleph/item/queue.rb', line 11

def to_s
  value
end