Class: Geoblacklight::DisplayNoteComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
Blacklight::IconHelperBehavior
Defined in:
app/components/geoblacklight/display_note_component.rb

Instance Method Summary collapse

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_renderObject



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

def before_render
  @display_note = decorated_note
  super
end