Class: ContentBlockTools::ContactComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- ContentBlockTools::ContactComponent
- 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
-
#initialize(content_block:, block_type: nil, block_name: nil) ⇒ ContactComponent
constructor
A new instance of ContactComponent.
Methods inherited from BaseComponent
Methods included from 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 |