Class: Geoblacklight::DataDictionaryDownloadComponent

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#documentObject (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

#keyObject



12
13
14
# File 'app/components/geoblacklight/data_dictionary_download_component.rb', line 12

def key
  "data_dictionary"
end