Class: Maglev::Uikit::Form::Link::BaseComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/maglev/uikit/form/link/base_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseComponent

#button_class_names

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_nameObject (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

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

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