Class: Geoblacklight::Document::RelationsContainerComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/geoblacklight/document/relations_container_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(document:) ⇒ RelationsContainerComponent

Returns a new instance of RelationsContainerComponent.



4
5
6
7
# File 'app/components/geoblacklight/document/relations_container_component.rb', line 4

def initialize(document:)
  super()
  @document = document
end

Instance Attribute Details

#documentObject (readonly)

Returns the value of attribute document.



9
10
11
# File 'app/components/geoblacklight/document/relations_container_component.rb', line 9

def document
  @document
end