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-1.1.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.0.3 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.0.2 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.0.1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.0.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.0.0.pre3 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.0.0.pre2 lib/geoblacklight/download/hgl_download.rb
geoblacklight-1.0.0.pre1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-0.12.1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-0.12.0 lib/geoblacklight/download/hgl_download.rb