Class: Geoblacklight::HglDownload

Inherits:
Download
  • Object
show all
Defined in:
lib/geoblacklight/download/hgl_download.rb

Instance Method Summary collapse

Methods inherited from Download

#create_download_file, #download_exists?, #downloadable?, #file_name, file_path, #file_path_and_name, #initiate_download, #url_with_params

Constructor Details

#initialize(document, email, options = {}) ⇒ HglDownload

Returns a new instance of HglDownload.



3
4
5
6
7
8
9
10
11
12
# File 'lib/geoblacklight/download/hgl_download.rb', line 3

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

Instance Method Details

#getObject



14
15
16
# File 'lib/geoblacklight/download/hgl_download.rb', line 14

def get
  initiate_download
end