Class: Maglev::Uikit::AppLayout::Topbar::LogoComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/maglev/uikit/app_layout/topbar/logo_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(root_path:, logo_url:) ⇒ LogoComponent

Returns a new instance of LogoComponent.



10
11
12
13
# File 'app/components/maglev/uikit/app_layout/topbar/logo_component.rb', line 10

def initialize(root_path:, logo_url:)
  @root_path = root_path
  @logo_url = logo_url
end

Instance Attribute Details

#logo_urlObject (readonly)

Returns the value of attribute logo_url.



8
9
10
# File 'app/components/maglev/uikit/app_layout/topbar/logo_component.rb', line 8

def logo_url
  @logo_url
end

#root_pathObject (readonly)

Returns the value of attribute root_path.



8
9
10
# File 'app/components/maglev/uikit/app_layout/topbar/logo_component.rb', line 8

def root_path
  @root_path
end