Class: MojComponent::InterruptionCardComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- MojComponent::InterruptionCardComponent
- Defined in:
- app/components/moj_component/interruption_card_component.rb
Instance Attribute Summary collapse
-
#heading ⇒ Object
readonly
Returns the value of attribute heading.
Instance Method Summary collapse
-
#initialize(heading:) ⇒ InterruptionCardComponent
constructor
A new instance of InterruptionCardComponent.
Constructor Details
#initialize(heading:) ⇒ InterruptionCardComponent
Returns a new instance of InterruptionCardComponent.
10 11 12 13 |
# File 'app/components/moj_component/interruption_card_component.rb', line 10 def initialize(heading:) @heading = heading super() end |
Instance Attribute Details
#heading ⇒ Object (readonly)
Returns the value of attribute heading.
5 6 7 |
# File 'app/components/moj_component/interruption_card_component.rb', line 5 def heading @heading end |