Class: Geoblacklight::DataDictionaryDownloadComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Geoblacklight::DataDictionaryDownloadComponent
- Defined in:
- app/components/geoblacklight/data_dictionary_download_component.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
readonly
Returns the value of attribute document.
Instance Method Summary collapse
-
#initialize(document:, action:) ⇒ DataDictionaryDownloadComponent
constructor
A new instance of DataDictionaryDownloadComponent.
- #key ⇒ Object
Constructor Details
#initialize(document:, action:) ⇒ DataDictionaryDownloadComponent
Returns a new instance of DataDictionaryDownloadComponent.
7 8 9 10 |
# File 'app/components/geoblacklight/data_dictionary_download_component.rb', line 7 def initialize(document:, action:, **) @document = document super() end |
Instance Attribute Details
#document ⇒ Object (readonly)
Returns the value of attribute document.
5 6 7 |
# File 'app/components/geoblacklight/data_dictionary_download_component.rb', line 5 def document @document end |
Instance Method Details
#key ⇒ Object
12 13 14 |
# File 'app/components/geoblacklight/data_dictionary_download_component.rb', line 12 def key "data_dictionary" end |