Class: Maglev::Uikit::SectionToolbar::SectionToolbarComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Maglev::Uikit::SectionToolbar::SectionToolbarComponent
- Defined in:
- app/components/maglev/uikit/section_toolbar/section_toolbar_component.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
Instance Method Summary collapse
-
#initialize(id:, label:, paths:, options: {}) ⇒ SectionToolbarComponent
constructor
A new instance of SectionToolbarComponent.
Constructor Details
#initialize(id:, label:, paths:, options: {}) ⇒ SectionToolbarComponent
Returns a new instance of SectionToolbarComponent.
9 10 11 12 13 14 |
# File 'app/components/maglev/uikit/section_toolbar/section_toolbar_component.rb', line 9 def initialize(id:, label:, paths:, options: {}) @id = id @label = label @paths = paths @options = end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'app/components/maglev/uikit/section_toolbar/section_toolbar_component.rb', line 7 def id @id end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
7 8 9 |
# File 'app/components/maglev/uikit/section_toolbar/section_toolbar_component.rb', line 7 def label @label end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'app/components/maglev/uikit/section_toolbar/section_toolbar_component.rb', line 7 def @options end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
7 8 9 |
# File 'app/components/maglev/uikit/section_toolbar/section_toolbar_component.rb', line 7 def paths @paths end |