class Exlibris::Aleph::Metadata

Attributes

marc_xml[R]

Public Class Methods

new(marc_xml) click to toggle source
# File lib/exlibris/aleph/metadata.rb, line 7
def initialize(marc_xml)
  @marc_xml = marc_xml.strip
end

Public Instance Methods

marc_record() click to toggle source
# File lib/exlibris/aleph/metadata.rb, line 11
def marc_record
  @marc_record ||= marc_xml_reader.first
end

Private Instance Methods

marc_xml_reader() click to toggle source
# File lib/exlibris/aleph/metadata.rb, line 20
def marc_xml_reader
  MARC::XMLReader.new(string_io)
end
string_io() click to toggle source
# File lib/exlibris/aleph/metadata.rb, line 16
def string_io
  StringIO.new(marc_xml)
end