Sha256: c328e05ec85793f48b62575907f50378bfac5d6ec187cddde32a7dacdc4b6480

Contents?: true

Size: 422 Bytes

Versions: 30

Compression:

Stored size: 422 Bytes

Contents

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

    def get
      initiate_download
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
geoblacklight-2.4.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-2.3.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-2.2.1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-2.2.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-2.1.2 lib/geoblacklight/download/hgl_download.rb
geoblacklight-2.1.1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-2.1.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-2.0.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.9.1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.9.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.8.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.7.1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.7.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.6.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.5.1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.5.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.4.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.3.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.2.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.1.2 lib/geoblacklight/download/hgl_download.rb