Class: Satis::LinkButton::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Satis::LinkButton::Component
- Defined in:
- app/components/satis/link_button/component.rb
Instance Attribute Summary collapse
-
#class_names ⇒ Object
readonly
Returns the value of attribute class_names.
-
#icon ⇒ Object
readonly
Returns the value of attribute icon.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(type, title: nil, icon: nil, url: nil) ⇒ Component
constructor
renders_many :items.
Methods inherited from ApplicationComponent
Constructor Details
#initialize(type, title: nil, icon: nil, url: nil) ⇒ Component
renders_many :items
8 9 10 11 12 13 14 |
# File 'app/components/satis/link_button/component.rb', line 8 def initialize(type, title: nil, icon: nil, url: nil) @type = type.to_sym @title = title @icon = icon @url = url @class_names = class_names end |
Instance Attribute Details
#class_names ⇒ Object (readonly)
Returns the value of attribute class_names.
6 7 8 |
# File 'app/components/satis/link_button/component.rb', line 6 def class_names @class_names end |
#icon ⇒ Object (readonly)
Returns the value of attribute icon.
6 7 8 |
# File 'app/components/satis/link_button/component.rb', line 6 def icon @icon end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'app/components/satis/link_button/component.rb', line 6 def title @title end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
6 7 8 |
# File 'app/components/satis/link_button/component.rb', line 6 def type @type end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
6 7 8 |
# File 'app/components/satis/link_button/component.rb', line 6 def url @url end |