Class: HglDownload

Inherits:
Download 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, #initiate_download

Constructor Details

#initialize(document, email) ⇒ HglDownload


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

def initialize(document, email)

  request_params = {
    "LayerName" => document[:layer_id_s].sub(/^cite:/, ''),
    "UserEmail" => email
  }
  super(document, {
    request_params: request_params,
    service_type: 'hgl'
  })
end

Instance Method Details

#getObject


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

def get
  initiate_download
end