Module: Geoblacklight::SolrDocument::Carto
- Extended by:
- Deprecation
- Included in:
- Geoblacklight::SolrDocument
- Defined in:
- app/models/concerns/geoblacklight/solr_document/carto.rb
Overview
Module for providing external Carto download references for a document
Instance Method Summary collapse
-
#carto_reference ⇒ String
Returns a url to a file that should be used with CartoDB integration.
-
#cartodb_reference ⇒ String
deprecated
Deprecated.
Use #carto_reference instead
Instance Method Details
#carto_reference ⇒ String
Returns a url to a file that should be used with CartoDB integration
22 23 24 25 |
# File 'app/models/concerns/geoblacklight/solr_document/carto.rb', line 22 def carto_reference return unless public? && download_types.try(:[], :geojson).present? Geoblacklight::GeojsonDownload.new(self).url_with_params end |
#cartodb_reference ⇒ String
Deprecated.
Use #carto_reference instead
Returns a url to a file that should be used with CartoDB integration
12 13 14 |
# File 'app/models/concerns/geoblacklight/solr_document/carto.rb', line 12 def cartodb_reference carto_reference end |