Class: Maglev::Uikit::SectionToolbar::SectionToolbarComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/maglev/uikit/section_toolbar/section_toolbar_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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 = options
end

Instance Attribute Details

#idObject (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

#labelObject (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

#optionsObject (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
  @options
end

#pathsObject (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