Module: Exlibris::Aleph::XmlUtil

Included in:
Rest::Base
Defined in:
lib/exlibris/aleph/xml_util.rb

Overview

Utility for parsing and building XML

Defined Under Namespace

Modules: ClassAttributes

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object


9
10
11
12
13
# File 'lib/exlibris/aleph/xml_util.rb', line 9

def self.included(klass)
  klass.class_eval do
    extend ClassAttributes
  end
end

Instance Method Details

#to_xmlObject


45
46
47
# File 'lib/exlibris/aleph/xml_util.rb', line 45

def to_xml
  xml.to_xml(xml_options).strip
end