Module: Geoblacklight::SolrDocument::Inspection

Included in:
Geoblacklight::SolrDocument
Defined in:
app/models/concerns/geoblacklight/solr_document/inspection.rb

Overview

Module to provide inspection logic for solr document

Instance Method Summary collapse

Instance Method Details

#inspectable?Boolean

Returns boolean about whether document viewer protocol is inspectable

Returns:

  • (Boolean)


11
12
13
14
# File 'app/models/concerns/geoblacklight/solr_document/inspection.rb', line 11

def inspectable?
  %w[wms feature_layer dynamic_map_layer tiled_map_layer]
    .include? viewer_protocol
end