Sha256: cb4ecca43902fb198bdd539026d47b9c940ad99b33b892864042a039b16425e7

Contents?: true

Size: 464 Bytes

Versions: 7

Compression:

Stored size: 464 Bytes

Contents

module GeoConcerns
  module SolrDocumentBehavior
    extend ActiveSupport::Concern

    def spatial
      fetch(Solrizer.solr_name('spatial'), [])
    end

    def temporal
      fetch(Solrizer.solr_name('temporal'), [])
    end

    def issued
      fetch(Solrizer.solr_name('issued'), nil)
    end

    def coverage
      fetch(Solrizer.solr_name('coverage'), nil)
    end

    def provenance
      fetch(Solrizer.solr_name('provenance'), nil)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
geo_concerns-0.0.7 app/models/concerns/geo_concerns/solr_document_behavior.rb
geo_concerns-0.0.6 app/models/concerns/geo_concerns/solr_document_behavior.rb
geo_concerns-0.0.5 app/models/concerns/geo_concerns/solr_document_behavior.rb
geo_concerns-0.0.4 app/models/concerns/geo_concerns/solr_document_behavior.rb
geo_concerns-0.0.3 app/models/concerns/geo_concerns/solr_document_behavior.rb
geo_concerns-0.0.2 app/models/concerns/geo_concerns/solr_document_behavior.rb
geo_concerns-0.0.1 app/models/concerns/geo_concerns/solr_document_behavior.rb