Class: Arara::CardMediaContentComponent

Inherits:
ActionView::Component::Base
  • Object
show all
Includes:
BaseComponent
Defined in:
app/components/arara/card_media_content_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_classObject (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_urlObject (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_classObject



11
12
13
# File 'app/components/arara/card_media_content_component.rb', line 11

def default_html_class
  "mdc-card__media-content"
end