class Geoblacklight::HglDownload

Public Class Methods

new(document, email, options = {}) click to toggle source
Calls superclass method Geoblacklight::Download::new
# File lib/geoblacklight/download/hgl_download.rb, line 4
def initialize(document, email, options = {})
  request_params = {
    'LayerName' => document[:layer_id_s].sub(/^cite:/, ''),
    'UserEmail' => email
  }
  super(document, {
    request_params: request_params,
    service_type: 'hgl'
  }.merge(options))
end

Public Instance Methods

get() click to toggle source
# File lib/geoblacklight/download/hgl_download.rb, line 15
def get
  initiate_download
end