Class: Www::FloorCompatibilityTableComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Www::FloorCompatibilityTableComponent
- Includes:
- ActionView::Helpers::UrlHelper
- Defined in:
- app/components/www/floor_compatibility_table_component.rb
Overview
Renders a floor type compatibility matrix for heating systems.
Data is sourced from the FloorHeatingCompatibility module.
Instance Method Summary collapse
-
#initialize(category: :all, title: 'Floor Type Compatibility', description: nil, show_section_header: true, compact: false) ⇒ FloorCompatibilityTableComponent
constructor
A new instance of FloorCompatibilityTableComponent.
Methods inherited from ApplicationComponent
#cms_link, #fetch_or_fallback, #image_asset_tag, #image_tag, #number_to_currency, #number_with_delimiter, #post_path, #post_url, #strip_tags
Constructor Details
#initialize(category: :all, title: 'Floor Type Compatibility', description: nil, show_section_header: true, compact: false) ⇒ FloorCompatibilityTableComponent
Returns a new instance of FloorCompatibilityTableComponent.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'app/components/www/floor_compatibility_table_component.rb', line 25 def initialize( category: :all, title: 'Floor Type Compatibility', description: nil, show_section_header: true, compact: false ) super() @category = category @title = title @description = description @show_section_header = show_section_header @compact = compact end |