Class: BerkeleyLibrary::TIND::MARC::XMLBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/berkeley_library/tind/marc/xml_builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_recordObject (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

#buildObject



13
14
15
# File 'lib/berkeley_library/tind/marc/xml_builder.rb', line 13

def build
  builder.doc.root.tap(&:unlink)
end