Sha256: 0626443554187a243310d3ca871178720401bd5ab3d18fc053486aec40006585

Contents?: true

Size: 423 Bytes

Versions: 10

Compression:

Stored size: 423 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

10 entries across 10 versions & 1 rubygems

Version Path
geoblacklight-0.11.1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-0.11.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-0.10.2 lib/geoblacklight/download/hgl_download.rb
geoblacklight-0.10.1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-0.10.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-0.9.2 lib/geoblacklight/download/hgl_download.rb
geoblacklight-0.9.1 lib/geoblacklight/download/hgl_download.rb
geoblacklight-0.9.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-0.8.0 lib/geoblacklight/download/hgl_download.rb
geoblacklight-0.7.1 lib/geoblacklight/download/hgl_download.rb