Sha256: 7623e35fa0c9041219eaa3cd0cd3a021faa39282db883f97561e84b545400287

Contents?: true

Size: 471 Bytes

Versions: 8

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true
module Geoblacklight
  class HglDownload < Geoblacklight::Download
    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

    def get
      initiate_download
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
geoblacklight-4.0.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-4.0.0.pre.rc3 lib/geoblacklight/download/hgl_download.rb
geoblacklight-4.0.0.pre.rc2 lib/geoblacklight/download/hgl_download.rb
geoblacklight-4.0.0.pre.rc1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-4.0.0.pre.alpha.3 lib/geoblacklight/download/hgl_download.rb
geoblacklight-4.0.0.pre.alpha.2 lib/geoblacklight/download/hgl_download.rb
geoblacklight-4.0.0.pre.alpha.1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-4.0.0.pre.alpha lib/geoblacklight/download/hgl_download.rb