Class: Vime::Core::Embed

Inherits:
Vime::Component show all
Defined in:
app/components/vime/core/embed.rb

Instance Method Summary collapse

Instance Method Details

#callObject



13
14
15
# File 'app/components/vime/core/embed.rb', line 13

def call
   "vm-embed", content, process_attrs(dom_attrs)
end

#dom_attrsObject



17
18
19
20
21
22
23
24
# File 'app/components/vime/core/embed.rb', line 17

def dom_attrs
  super.merge({
    embed_src: embed_src,
    media_title: media_title,
    origin: origin,
    params: params,
  })
end