Class: Exlibris::Aleph::Items

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
Enumerable
Defined in:
lib/exlibris/aleph/items.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(record_id) ⇒ Items

Returns a new instance of Items.



12
13
14
# File 'lib/exlibris/aleph/items.rb', line 12

def initialize(record_id)
  @record_id = record_id
end

Instance Attribute Details

#record_idObject (readonly)

Returns the value of attribute record_id.



10
11
12
# File 'lib/exlibris/aleph/items.rb', line 10

def record_id
  @record_id
end

Instance Method Details

#to_aObject



16
17
18
# File 'lib/exlibris/aleph/items.rb', line 16

def to_a
  @array ||= ids.map { |id| Item.new(record_id, id) }
end