Class: AhoyCaptain::Tables::Headers::HeaderComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/ahoy_captain/tables/headers/header_component.rb

Instance Method Summary collapse

Constructor Details

#initialize(category_name:, unit_name:) ⇒ HeaderComponent

Returns a new instance of HeaderComponent.



5
6
7
8
# File 'app/components/ahoy_captain/tables/headers/header_component.rb', line 5

def initialize(category_name:, unit_name:)
  @category_name = category_name
  @unit_name = unit_name
end

Instance Method Details

#fixed_height?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'app/components/ahoy_captain/tables/headers/header_component.rb', line 10

def fixed_height?
  true
end