Class: Www::SupportSpecificationsComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/www/support_specifications_component.rb

Instance Method Summary collapse

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(specifications_grouped:) ⇒ SupportSpecificationsComponent

Returns a new instance of SupportSpecificationsComponent.



4
5
6
7
# File 'app/components/www/support_specifications_component.rb', line 4

def initialize(specifications_grouped:)
  super()
  @specifications_grouped = specifications_grouped
end

Instance Method Details

#render?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'app/components/www/support_specifications_component.rb', line 9

def render?
  specifications_grouped.present?
end