Class: FlexiAdmin::Components::Shared::LinkComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- FlexiAdmin::Components::Shared::LinkComponent
- Defined in:
- lib/flexi_admin/components/shared/link_component.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title, path, **options) ⇒ LinkComponent
constructor
A new instance of LinkComponent.
Constructor Details
#initialize(title, path, **options) ⇒ LinkComponent
Returns a new instance of LinkComponent.
9 10 11 12 13 |
# File 'lib/flexi_admin/components/shared/link_component.rb', line 9 def initialize(title, path, **) @title = title @path = path @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/flexi_admin/components/shared/link_component.rb', line 7 def @options end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/flexi_admin/components/shared/link_component.rb', line 7 def path @path end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
7 8 9 |
# File 'lib/flexi_admin/components/shared/link_component.rb', line 7 def title @title end |