Class: Www::SnowMeltingQuoteFormComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Www::SnowMeltingQuoteFormComponent
- Defined in:
- app/components/www/snow_melting_quote_form_component.rb
Overview
ViewComponent: renders the snow melting quote form block.
Presents the snow-melting quote wizard fields (surface type, coverage type,
car count, postal code) that feed the quote builder.
Instance Method Summary collapse
-
#initialize(room_type: 'driveway', header_variant: :bold, show_postal_code: true) ⇒ void
constructor
Builds the quote form component.
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: 'driveway', header_variant: :bold, show_postal_code: true) ⇒ void
Builds the quote form component.
16 17 18 19 20 21 |
# File 'app/components/www/snow_melting_quote_form_component.rb', line 16 def initialize(room_type: 'driveway', header_variant: :bold, show_postal_code: true) super() @room_type = room_type @header_variant = header_variant @show_postal_code = show_postal_code end |