Class: Spark::Embed::WistiaMedia
- Inherits:
-
Component::Base
- Object
- ActionView::Component::Base
- Component::Base
- Spark::Embed::WistiaMedia
- Defined in:
- app/components/spark/embed/wistia_media.rb
Instance Method Summary collapse
-
#initialize ⇒ WistiaMedia
constructor
A new instance of WistiaMedia.
Methods inherited from Component::Base
Constructor Details
#initialize ⇒ WistiaMedia
Returns a new instance of WistiaMedia.
11 12 13 14 15 16 17 18 19 |
# File 'app/components/spark/embed/wistia_media.rb', line 11 def initialize(*) super classname.base = "spark-wistia-media" unless @height.blank? tag_attrs.merge!(style: "height: #{@height}px;max-width: #{@width}px") end end |