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.
6 7 8 |
# File 'lib/geoblacklight/routes/downloadable.rb', line 6 def initialize(defaults = {}) @defaults = defaults end |
Instance Method Details
#call(mapper, _options = {}) ⇒ Object
10 11 12 13 |
# File 'lib/geoblacklight/routes/downloadable.rb', line 10 def call(mapper, = {}) mapper.get "file/:id", action: "file", as: :file mapper.get "hgl/:id", action: "hgl", as: :hgl end |