Class: Arara::CardMediaContentComponent
- Inherits:
-
ActionView::Component::Base
- Object
- ActionView::Component::Base
- Arara::CardMediaContentComponent
- Includes:
- BaseComponent
- Defined in:
- app/components/arara/card_media_content_component.rb
Instance Attribute Summary collapse
-
#content_html_class ⇒ Object
readonly
Returns the value of attribute content_html_class.
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
Instance Method Summary collapse
- #default_html_class ⇒ Object
-
#initialize(**kw) ⇒ CardMediaContentComponent
constructor
A new instance of CardMediaContentComponent.
Methods included from BaseComponent
#default_data_controller, #default_html_tag, #html_class, #html_content, #html_data, #html_options, #html_tag, included
Constructor Details
#initialize(**kw) ⇒ CardMediaContentComponent
Returns a new instance of CardMediaContentComponent.
5 6 7 |
# File 'app/components/arara/card_media_content_component.rb', line 5 def initialize(**kw) super(tag: "div", **kw) end |
Instance Attribute Details
#content_html_class ⇒ Object (readonly)
Returns the value of attribute content_html_class.
9 10 11 |
# File 'app/components/arara/card_media_content_component.rb', line 9 def content_html_class @content_html_class end |
#image_url ⇒ Object (readonly)
Returns the value of attribute image_url.
9 10 11 |
# File 'app/components/arara/card_media_content_component.rb', line 9 def image_url @image_url end |
Instance Method Details
#default_html_class ⇒ Object
11 12 13 |
# File 'app/components/arara/card_media_content_component.rb', line 11 def default_html_class "mdc-card__media-content" end |