Class: MojComponent::InterruptionCardComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/moj_component/interruption_card_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#headingObject (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