Class: UI::CardActionComponent

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

Instance Method Summary collapse

Methods included from CardActionBehavior

#card_action_classes, #card_action_html_attributes, #render_card_action

Constructor Details

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

Returns a new instance of CardActionComponent.



6
7
8
9
# File 'app/view_components/ui/card_action_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_action_component.rb', line 11

def call
  render_card_action { content }
end