Sha256: a99a1d62006339d39c09e9ec131d7ba9aaa23f630ed6d0087ade5c8e631749b6

Contents?: true

Size: 394 Bytes

Versions: 6

Compression:

Stored size: 394 Bytes

Contents

module GeoConcerns
  class DerivativePath < CurationConcerns::DerivativePath
    def self.extension_for(destination_name)
      case destination_name
      when 'thumbnail'
        ".#{MIME::Types.type_for('jpg').first.extensions.first}"
      when 'display_raster'
        '.tif'
      when 'display_vector'
        '.zip'
      else
        ".#{destination_name}"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
geo_concerns-0.0.6 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.0.5 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.0.4 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.0.3 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.0.2 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.0.1 app/services/geo_concerns/derivative_path.rb