Sha256: dea315e5ead5c81bd0e7ce3b4b79dcc13d2486819c85d5bec0374ac1a027ec57

Contents?: true

Size: 884 Bytes

Versions: 21

Compression:

Stored size: 884 Bytes

Contents

module Geoblacklight
  module SolrDocument
    ##
    # Module for providing external Carto download references for a document
    module Carto
      extend Deprecation
      self.deprecation_horizon = 'Geoblacklight 2.0.0'
      ##
      # Returns a url to a file that should be used with CartoDB integration
      # @return [String]
      # @deprecated Use {#carto_reference} instead
      def cartodb_reference
        carto_reference
      end
      deprecation_deprecate(
        cartodb_reference: 'use Geoblacklight::SolrDocument::Carto#carto_reference instead'
      )

      ##
      # 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

21 entries across 21 versions & 1 rubygems

Version Path
geoblacklight-2.4.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-2.3.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-2.2.1 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-2.2.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-2.1.2 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-2.1.1 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-2.1.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-2.0.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-1.9.1 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-1.9.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-1.8.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-1.7.1 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-1.7.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-1.6.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-1.5.1 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-1.5.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-1.4.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-1.3.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-1.2.0 app/models/concerns/geoblacklight/solr_document/carto.rb
geoblacklight-1.1.2 app/models/concerns/geoblacklight/solr_document/carto.rb