Class: Arclight::OembedViewerComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Arclight::OembedViewerComponent
- Defined in:
- app/components/arclight/oembed_viewer_component.rb
Overview
Render an oembed viewer for a document
Instance Method Summary collapse
-
#initialize(resource:, document:, depth: 0) ⇒ OembedViewerComponent
constructor
A new instance of OembedViewerComponent.
Constructor Details
#initialize(resource:, document:, depth: 0) ⇒ OembedViewerComponent
Returns a new instance of OembedViewerComponent.
8 9 10 11 12 13 14 |
# File 'app/components/arclight/oembed_viewer_component.rb', line 8 def initialize(resource:, document:, depth: 0) super @resource = resource @document = document @depth = depth end |