class Exlibris::Aleph::Record
Attributes
id[R]
Public Class Methods
new(id)
click to toggle source
# File lib/exlibris/aleph/record.rb, line 7 def initialize(id) @id = id end
Public Instance Methods
holdings()
click to toggle source
# File lib/exlibris/aleph/record.rb, line 15 def holdings @holdings ||= Holdings.new(id).to_a end
items()
click to toggle source
# File lib/exlibris/aleph/record.rb, line 19 def items @items ||= Items.new(id).to_a end
metadata()
click to toggle source
# File lib/exlibris/aleph/record.rb, line 11 def metadata @metadata ||= Metadata.new(client.to_xml) unless client.error? end
Private Instance Methods
client()
click to toggle source
# File lib/exlibris/aleph/record.rb, line 24 def client @client ||= API::Client::Record.new(id, {view: 'full'}) end