Class: Geoblacklight::AttributeTableComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Geoblacklight::AttributeTableComponent
- Defined in:
- app/components/geoblacklight/attribute_table_component.rb
Overview
A component for rendering attribute table
Instance Method Summary collapse
-
#initialize(document:) ⇒ AttributeTableComponent
constructor
A new instance of AttributeTableComponent.
- #render? ⇒ Boolean
Constructor Details
#initialize(document:) ⇒ AttributeTableComponent
Returns a new instance of AttributeTableComponent.
8 9 10 11 |
# File 'app/components/geoblacklight/attribute_table_component.rb', line 8 def initialize(document:) @document = document super() end |
Instance Method Details
#render? ⇒ Boolean
13 14 15 |
# File 'app/components/geoblacklight/attribute_table_component.rb', line 13 def render? helpers.document_available?(@document) && @document.inspectable? end |