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.



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

def initialize(document, email, options = {})
  request_params = {
    "LayerName" => document[Settings.FIELDS.WXS_IDENTIFIER].sub(/^cite:/, ""),
    "UserEmail" => email
  }
  super(document, {
    request_params: request_params,
    service_type: "hgl"
  }.merge(options))
end

Instance Method Details

#getObject



16
17
18
# File 'lib/geoblacklight/download/hgl_download.rb', line 16

def get
  initiate_download
end