Class: Exlibris::Aleph::Metadata

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

Direct Known Subclasses

Holding::Metadata, Record::Metadata

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(marc_xml) ⇒ Metadata

Returns a new instance of Metadata.



7
8
9
# File 'lib/exlibris/aleph/metadata.rb', line 7

def initialize(marc_xml)
  @marc_xml = marc_xml.strip
end

Instance Attribute Details

#marc_xmlObject (readonly)

Returns the value of attribute marc_xml.



5
6
7
# File 'lib/exlibris/aleph/metadata.rb', line 5

def marc_xml
  @marc_xml
end

Instance Method Details

#marc_recordObject



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

def marc_record
  @marc_record ||= marc_xml_reader.first
end