Sha256: 2374740af3d27a1231aec345cf48b92c2eed14da02ee8a2daf7b49492d5c5ad6

Contents?: true

Size: 367 Bytes

Versions: 11

Compression:

Stored size: 367 Bytes

Contents

module GeoConcerns
  class DerivativePath < CurationConcerns::DerivativePath
    def extension
      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

11 entries across 11 versions & 1 rubygems

Version Path
geo_concerns-0.3.4 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.3.3 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.3.2 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.3.1 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.3.0 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.2.0 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.1.1 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.1.0 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.0.10 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.0.9 app/services/geo_concerns/derivative_path.rb
geo_concerns-0.0.8 app/services/geo_concerns/derivative_path.rb