Class: RuxRails::Components::Video
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- RuxRails::Components::Video
- Includes:
- ActionView::Helpers::AssetUrlHelper
- Defined in:
- lib/rux-rails/components/video.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#src ⇒ Object
readonly
Returns the value of attribute src.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(src:, **params) ⇒ Video
constructor
A new instance of Video.
Constructor Details
#initialize(src:, **params) ⇒ Video
Returns a new instance of Video.
8 9 10 11 |
# File 'lib/rux-rails/components/video.rb', line 8 def initialize(src:, **params) @src = src @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
6 7 8 |
# File 'lib/rux-rails/components/video.rb', line 6 def params @params end |
#src ⇒ Object (readonly)
Returns the value of attribute src.
6 7 8 |
# File 'lib/rux-rails/components/video.rb', line 6 def src @src end |
Instance Method Details
#call ⇒ Object
13 14 15 |
# File 'lib/rux-rails/components/video.rb', line 13 def call video_tag(src, **params) end |