Class: Satis::CallToAction::Component
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Satis::CallToAction::Component
- Defined in:
- app/components/satis/call_to_action/component.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#style ⇒ Object
readonly
Returns the value of attribute style.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes inherited from ApplicationComponent
Instance Method Summary collapse
-
#initialize(identifier = nil, icon: nil, title: nil, description: nil, style: :regular) ⇒ Component
constructor
A new instance of Component.
Methods inherited from ApplicationComponent
Constructor Details
#initialize(identifier = nil, icon: nil, title: nil, description: nil, style: :regular) ⇒ Component
Returns a new instance of Component.
10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/components/satis/call_to_action/component.rb', line 10 def initialize(identifier = nil, icon: nil, title: nil, description: nil, style: :regular) super @identifier = identifier @title = title @description = description @style = style end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
8 9 10 |
# File 'app/components/satis/call_to_action/component.rb', line 8 def description @description end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
8 9 10 |
# File 'app/components/satis/call_to_action/component.rb', line 8 def identifier @identifier end |
#style ⇒ Object (readonly)
Returns the value of attribute style.
8 9 10 |
# File 'app/components/satis/call_to_action/component.rb', line 8 def style @style end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
8 9 10 |
# File 'app/components/satis/call_to_action/component.rb', line 8 def title @title end |