Class: Vime::Core::Embed
- Inherits:
-
Vime::Component
- Object
- ViewComponent::Base
- Vime::Component
- Vime::Core::Embed
- Defined in:
- app/components/vime/core/embed.rb
Direct Known Subclasses
Providers::Dailymotion, Providers::Vimeo, Providers::Youtube
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'app/components/vime/core/embed.rb', line 13 def call content_tag "vm-embed", content, process_attrs(dom_attrs) end |
#dom_attrs ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'app/components/vime/core/embed.rb', line 17 def dom_attrs super.merge({ embed_src: , media_title: media_title, origin: origin, params: params, }) end |