Class: OAI::Provider::Response::ListMetadataFormats
- Defined in:
- lib/oai/provider/response/list_metadata_formats.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
default_parameters, #initialize, required_parameters, #response, valid_parameters
Constructor Details
This class inherits a constructor from OAI::Provider::Response::Base
Instance Method Details
#to_xml ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/oai/provider/response/list_metadata_formats.rb', line 5 def to_xml response do |r| r.ListMetadataFormats do provider.formats.each do |key, format| r. do r. format.prefix r.schema format.schema r. format.namespace end end end end end |