Class: Arclight::OembedViewerComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/arclight/oembed_viewer_component.rb

Overview

Render an oembed viewer for a document

Instance Method Summary collapse

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