Class: Maglev::Uikit::Form::Link::BaseComponent
- Inherits:
-
BaseComponent
- Object
- ViewComponent::Base
- BaseComponent
- Maglev::Uikit::Form::Link::BaseComponent
- Defined in:
- app/components/maglev/uikit/form/link/base_component.rb
Direct Known Subclasses
EmailLinkComponent, PageLinkComponent, StaticPageLinkComponent
Instance Attribute Summary collapse
-
#input_name ⇒ Object
readonly
Returns the value of attribute input_name.
-
#link ⇒ Object
readonly
Returns the value of attribute link.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(input_name:, link:, path:) ⇒ BaseComponent
constructor
A new instance of BaseComponent.
Methods inherited from BaseComponent
Constructor Details
#initialize(input_name:, link:, path:) ⇒ BaseComponent
Returns a new instance of BaseComponent.
10 11 12 13 14 |
# File 'app/components/maglev/uikit/form/link/base_component.rb', line 10 def initialize(input_name:, link:, path:) @input_name = input_name @link = link @path = path end |
Instance Attribute Details
#input_name ⇒ Object (readonly)
Returns the value of attribute input_name.
8 9 10 |
# File 'app/components/maglev/uikit/form/link/base_component.rb', line 8 def input_name @input_name end |
#link ⇒ Object (readonly)
Returns the value of attribute link.
8 9 10 |
# File 'app/components/maglev/uikit/form/link/base_component.rb', line 8 def link @link end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
8 9 10 |
# File 'app/components/maglev/uikit/form/link/base_component.rb', line 8 def path @path end |