Class: Essence::StepListComponent::ItemComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/essence/step_list_component.rb

Constant Summary

Constants included from FetchOrFallbackHelper

FetchOrFallbackHelper::InvalidValueError

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApplicationComponent

#assets_path, assets_path, images_directory

Methods included from Utils

#get_directory_file_names

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

#descriptionObject (readonly)

Returns the value of attribute description.



16
17
18
# File 'app/components/essence/step_list_component.rb', line 16

def description
  @description
end

#headlineObject (readonly)

Returns the value of attribute headline.



16
17
18
# File 'app/components/essence/step_list_component.rb', line 16

def headline
  @headline
end