Class: Geoblacklight::IndexMapInspectComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Geoblacklight::IndexMapInspectComponent
- Defined in:
- app/components/geoblacklight/index_map_inspect_component.rb
Overview
Renders the HTML that is dynamically populated when inspecting index maps
Instance Method Summary collapse
-
#initialize(document:) ⇒ IndexMapInspectComponent
constructor
A new instance of IndexMapInspectComponent.
- #render? ⇒ Boolean
Constructor Details
#initialize(document:) ⇒ IndexMapInspectComponent
Returns a new instance of IndexMapInspectComponent.
6 7 8 9 |
# File 'app/components/geoblacklight/index_map_inspect_component.rb', line 6 def initialize(document:) super() @document = document end |
Instance Method Details
#render? ⇒ Boolean
11 12 13 |
# File 'app/components/geoblacklight/index_map_inspect_component.rb', line 11 def render? @document.viewer_protocol == "index_map" end |