Class: Www::LandingPageCompareComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Www::LandingPageCompareComponent
- Defined in:
- app/components/www/landing_page_compare_component.rb
Instance Method Summary collapse
-
#initialize(room_type: 'bathroom', header_variant: :bold, show_whats_included: false) ⇒ LandingPageCompareComponent
constructor
A new instance of LandingPageCompareComponent.
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(room_type: 'bathroom', header_variant: :bold, show_whats_included: false) ⇒ LandingPageCompareComponent
Returns a new instance of LandingPageCompareComponent.
2 3 4 5 6 7 |
# File 'app/components/www/landing_page_compare_component.rb', line 2 def initialize(room_type: 'bathroom', header_variant: :bold, show_whats_included: false) super() @room_type = room_type @header_variant = header_variant @show_whats_included = show_whats_included end |