Class: Geoblacklight::Routes::Downloadable
- Inherits:
-
Object
- Object
- Geoblacklight::Routes::Downloadable
- Defined in:
- lib/geoblacklight/routes/downloadable.rb
Instance Method Summary collapse
- #call(mapper, _options = {}) ⇒ Object
-
#initialize(defaults = {}) ⇒ Downloadable
constructor
A new instance of Downloadable.
Constructor Details
#initialize(defaults = {}) ⇒ Downloadable
Returns a new instance of Downloadable.
4 5 6 |
# File 'lib/geoblacklight/routes/downloadable.rb', line 4 def initialize(defaults = {}) @defaults = defaults end |
Instance Method Details
#call(mapper, _options = {}) ⇒ Object
8 9 10 11 |
# File 'lib/geoblacklight/routes/downloadable.rb', line 8 def call(mapper, = {}) mapper.get 'file/:id', action: 'file', as: :file mapper.get 'hgl/:id', action: 'hgl', as: :hgl end |