Class: UI::CardFooterComponent

Inherits:
ViewComponent::Base
  • Object
show all
Includes:
CardFooterBehavior
Defined in:
app/view_components/ui/card_footer_component.rb

Instance Method Summary collapse

Methods included from CardFooterBehavior

#card_footer_classes, #card_footer_html_attributes, #render_card_footer

Constructor Details

#initialize(classes: "", **attributes) ⇒ CardFooterComponent

Returns a new instance of CardFooterComponent.



6
7
8
9
# File 'app/view_components/ui/card_footer_component.rb', line 6

def initialize(classes: "", **attributes)
  @classes = classes
  @attributes = attributes
end

Instance Method Details

#callObject



11
12
13
# File 'app/view_components/ui/card_footer_component.rb', line 11

def call
  render_card_footer { content }
end