Class: Essence::StepListComponent::ItemComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Essence::StepListComponent::ItemComponent
- Defined in:
- app/components/essence/step_list_component.rb
Constant Summary
Constants included from FetchOrFallbackHelper
FetchOrFallbackHelper::InvalidValueError
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#headline ⇒ Object
readonly
Returns the value of attribute headline.
Instance Method Summary collapse
-
#initialize(headline:, description:) ⇒ ItemComponent
constructor
A new instance of ItemComponent.
Methods inherited from ApplicationComponent
#assets_path, assets_path, images_directory
Methods included from Utils
Methods included from FetchOrFallbackHelper
#fetch_or_fallback, #fetch_or_fallback_boolean, #integer_or_fallback
Constructor Details
#initialize(headline:, description:) ⇒ ItemComponent
Returns a new instance of ItemComponent.
18 19 20 21 |
# File 'app/components/essence/step_list_component.rb', line 18 def initialize(headline:, description:) @headline = headline @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
16 17 18 |
# File 'app/components/essence/step_list_component.rb', line 16 def description @description end |
#headline ⇒ Object (readonly)
Returns the value of attribute headline.
16 17 18 |
# File 'app/components/essence/step_list_component.rb', line 16 def headline @headline end |