Class: OaiRepository::ServicesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/oai_repository/services_controller.rb

Instance Method Summary collapse

Instance Method Details

#get_providerObject



13
14
15
# File 'app/controllers/oai_repository/services_controller.rb', line 13

def get_provider
  @provider ||= OAIProvider::provider.new
end

#showObject



5
6
7
8
9
10
11
# File 'app/controllers/oai_repository/services_controller.rb', line 5

def show

  options = params.delete_if { |k,v| %w{controller action}.include?(k) }
  response = get_provider.process_request(options)
  render :xml => response
  
end