Class: Maglev::Uikit::AppLayout::Topbar::LogoComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Maglev::Uikit::AppLayout::Topbar::LogoComponent
- Defined in:
- app/components/maglev/uikit/app_layout/topbar/logo_component.rb
Instance Attribute Summary collapse
-
#logo_url ⇒ Object
readonly
Returns the value of attribute logo_url.
-
#root_path ⇒ Object
readonly
Returns the value of attribute root_path.
Instance Method Summary collapse
-
#initialize(root_path:, logo_url:) ⇒ LogoComponent
constructor
A new instance of LogoComponent.
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_url ⇒ Object (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_path ⇒ Object (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 |