Class: Geoblacklight::DisplayNoteComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Geoblacklight::DisplayNoteComponent
- Includes:
- Blacklight::IconHelperBehavior
- Defined in:
- app/components/geoblacklight/display_note_component.rb
Instance Method Summary collapse
- #before_render ⇒ Object
-
#initialize(display_note:) ⇒ DisplayNoteComponent
constructor
A new instance of DisplayNoteComponent.
Constructor Details
#initialize(display_note:) ⇒ DisplayNoteComponent
Returns a new instance of DisplayNoteComponent.
7 8 9 10 |
# File 'app/components/geoblacklight/display_note_component.rb', line 7 def initialize(display_note:) @display_note = display_note super end |
Instance Method Details
#before_render ⇒ Object
12 13 14 15 |
# File 'app/components/geoblacklight/display_note_component.rb', line 12 def before_render @display_note = decorated_note super end |