Class: BerkeleyLibrary::TIND::MARC::XMLBuilder
- Inherits:
-
Object
- Object
- BerkeleyLibrary::TIND::MARC::XMLBuilder
- Defined in:
- lib/berkeley_library/tind/marc/xml_builder.rb
Instance Attribute Summary collapse
-
#marc_record ⇒ Object
readonly
Returns the value of attribute marc_record.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(marc_record) ⇒ XMLBuilder
constructor
A new instance of XMLBuilder.
Constructor Details
#initialize(marc_record) ⇒ XMLBuilder
Returns a new instance of XMLBuilder.
9 10 11 |
# File 'lib/berkeley_library/tind/marc/xml_builder.rb', line 9 def initialize(marc_record) @marc_record = marc_record end |
Instance Attribute Details
#marc_record ⇒ Object (readonly)
Returns the value of attribute marc_record.
7 8 9 |
# File 'lib/berkeley_library/tind/marc/xml_builder.rb', line 7 def marc_record @marc_record end |
Instance Method Details
#build ⇒ Object
13 14 15 |
# File 'lib/berkeley_library/tind/marc/xml_builder.rb', line 13 def build builder.doc.root.tap(&:unlink) end |