Class: OAI::Provider::Response::ListSets
- Defined in:
- lib/oai/provider/response/list_sets.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 18 19 |
# File 'lib/oai/provider/response/list_sets.rb', line 5 def to_xml raise OAI::SetException.new unless provider.model.sets response do |r| r.ListSets do provider.model.sets.each do |set| r.set do r.setSpec set.spec r.setName set.name r.setDescription(set.description) if set.respond_to?(:description) end end end end end |