Class: Spotlight::EditViewLinksComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Spotlight::EditViewLinksComponent
- Defined in:
- app/components/spotlight/edit_view_links_component.rb
Overview
Allows component addition to exhibit navbar
Instance Attribute Summary collapse
-
#classes ⇒ Object
readonly
Returns the value of attribute classes.
-
#delete_link ⇒ Object
readonly
Returns the value of attribute delete_link.
-
#page ⇒ Object
readonly
Returns the value of attribute page.
Instance Method Summary collapse
-
#initialize(page:, classes: 'page-links', delete_link: false) ⇒ EditViewLinksComponent
constructor
A new instance of EditViewLinksComponent.
Constructor Details
#initialize(page:, classes: 'page-links', delete_link: false) ⇒ EditViewLinksComponent
Returns a new instance of EditViewLinksComponent.
8 9 10 11 12 13 14 |
# File 'app/components/spotlight/edit_view_links_component.rb', line 8 def initialize(page:, classes: 'page-links', delete_link: false) super @page = page @classes = classes @delete_link = delete_link end |
Instance Attribute Details
#classes ⇒ Object (readonly)
Returns the value of attribute classes.
6 7 8 |
# File 'app/components/spotlight/edit_view_links_component.rb', line 6 def classes @classes end |
#delete_link ⇒ Object (readonly)
Returns the value of attribute delete_link.
6 7 8 |
# File 'app/components/spotlight/edit_view_links_component.rb', line 6 def delete_link @delete_link end |
#page ⇒ Object (readonly)
Returns the value of attribute page.
6 7 8 |
# File 'app/components/spotlight/edit_view_links_component.rb', line 6 def page @page end |