Sha256: 878eb409467d2f44adac76bf24d572fc09941d499b685cb5c48a9b9ccc34761a

Contents?: true

Size: 480 Bytes

Versions: 20

Compression:

Stored size: 480 Bytes

Contents

# frozen_string_literal: true
module Geoblacklight
  module SolrDocument
    ##
    # Module for providing external Carto download references for a document
    module Carto
      ##
      # Returns a url to a file that should be used with CartoDB integration
      # @return [String]
      def carto_reference
        return unless public? && download_types.try(:[], :geojson).present?
        Geoblacklight::GeojsonDownload.new(self).url_with_params
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
geoblacklight-3.8.1 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-3.8.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-4.0.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-4.0.0.pre.rc3 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-3.7.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-4.0.0.pre.rc2 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-4.0.0.pre.rc1 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-3.6.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-3.5.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-4.0.0.pre.alpha.3 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-4.0.0.pre.alpha.2 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-4.0.0.pre.alpha.1 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-4.0.0.pre.alpha app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-3.4.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-3.3.1 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-3.3.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-3.2.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-3.1.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-3.0.1 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-3.0.0 app/models/concerns/geoblacklight/solr_document/carto.rb