Class: Exlibris::Aleph::Metadata
- Inherits:
-
Object
- Object
- Exlibris::Aleph::Metadata
- Defined in:
- lib/exlibris/aleph/metadata.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#marc_xml ⇒ Object
readonly
Returns the value of attribute marc_xml.
Instance Method Summary collapse
-
#initialize(marc_xml) ⇒ Metadata
constructor
A new instance of Metadata.
- #marc_record ⇒ Object
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_xml ⇒ Object (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_record ⇒ Object
11 12 13 |
# File 'lib/exlibris/aleph/metadata.rb', line 11 def marc_record @marc_record ||= marc_xml_reader.first end |