Class: BlacklightOaiProvider::Routes
- Inherits:
-
Object
- Object
- BlacklightOaiProvider::Routes
- Defined in:
- lib/blacklight_oai_provider/routes.rb
Instance Method Summary collapse
- #call(mapper, _options = {}) ⇒ Object
-
#initialize(defaults = {}) ⇒ Routes
constructor
A new instance of Routes.
Constructor Details
#initialize(defaults = {}) ⇒ Routes
Returns a new instance of Routes.
3 4 5 |
# File 'lib/blacklight_oai_provider/routes.rb', line 3 def initialize(defaults = {}) @defaults = defaults end |
Instance Method Details
#call(mapper, _options = {}) ⇒ Object
7 8 9 |
# File 'lib/blacklight_oai_provider/routes.rb', line 7 def call(mapper, = {}) mapper.match 'oai', action: 'oai', via: [:get, :post] end |