Class: Geoblacklight::Routes::Exportable
- Inherits:
-
Object
- Object
- Geoblacklight::Routes::Exportable
- Defined in:
- lib/geoblacklight/routes/exportable.rb
Instance Method Summary collapse
- #call(mapper, _options = {}) ⇒ Object
-
#initialize(defaults = {}) ⇒ Exportable
constructor
A new instance of Exportable.
Constructor Details
#initialize(defaults = {}) ⇒ Exportable
Returns a new instance of Exportable.
4 5 6 |
# File 'lib/geoblacklight/routes/exportable.rb', line 4 def initialize(defaults = {}) @defaults = defaults end |
Instance Method Details
#call(mapper, _options = {}) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/geoblacklight/routes/exportable.rb', line 8 def call(mapper, = {}) mapper.member do mapper.get 'web_services' mapper.get 'metadata' mapper.get 'relations' => 'relation#index' end end |