Class: ContentBlockTools::ContactComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/content_block_tools/contact_component.rb

Constant Summary collapse

BLOCK_TYPES =
i[addresses email_addresses telephones contact_links].freeze

Instance Method Summary collapse

Methods inherited from BaseComponent

#render

Methods included from OverrideClasses

#font_classes, #font_size_class, #font_weight_class, #margin_classes, #padding_classes

Methods included from Govspeak

#render_govspeak

Constructor Details

#initialize(content_block:, block_type: nil, block_name: nil) ⇒ ContactComponent

Returns a new instance of ContactComponent.



5
6
7
8
9
# File 'app/components/content_block_tools/contact_component.rb', line 5

def initialize(content_block:, block_type: nil, block_name: nil)
  @content_block = content_block
  @block_type = block_type
  @block_name = block_name
end