Class: Geoblacklight::IndexMapInspectComponent

Inherits:
ViewComponent::Base
  • Object
show all
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

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

Returns:

  • (Boolean)


11
12
13
# File 'app/components/geoblacklight/index_map_inspect_component.rb', line 11

def render?
  @document.viewer_protocol == "index_map"
end