Class: ContentBlockTools::Components::ContactComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
lib/content_block_tools/components/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

Constructor Details

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

Returns a new instance of ContactComponent.



6
7
8
9
10
# File 'lib/content_block_tools/components/contact_component.rb', line 6

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