Class: EACSerializer

Inherits:
ASpaceExport::Serializer show all
Defined in:
backend/app/exporters/serializers/eac.rb

Instance Method Summary (collapse)

Methods inherited from ASpaceExport::Serializer

inherited, serializer_for, serializer_for?, with_namespace

Instance Method Details

- (Object) serialize(eac, opts = {})



4
5
6
7
8
9
10
11
# File 'backend/app/exporters/serializers/eac.rb', line 4

def serialize(eac, opts = {})

  builder = Nokogiri::XML::Builder.new(:encoding => "UTF-8") do |xml|
    _eac(eac, xml)     
  end
  
  builder.to_xml   
end