Class: Spina::Forms::GroupComponent
- Inherits:
-
ApplicationComponent
- Object
- ViewComponent::Base
- ApplicationComponent
- Spina::Forms::GroupComponent
- Defined in:
- app/components/spina/forms/group_component.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#label ⇒ Object
readonly
Returns the value of attribute label.
Instance Method Summary collapse
-
#initialize(label:, description: "") ⇒ GroupComponent
constructor
A new instance of GroupComponent.
Constructor Details
#initialize(label:, description: "") ⇒ GroupComponent
Returns a new instance of GroupComponent.
6 7 8 9 |
# File 'app/components/spina/forms/group_component.rb', line 6 def initialize(label:, description: "") @label = label @description = description end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
4 5 6 |
# File 'app/components/spina/forms/group_component.rb', line 4 def description @description end |
#label ⇒ Object (readonly)
Returns the value of attribute label.
4 5 6 |
# File 'app/components/spina/forms/group_component.rb', line 4 def label @label end |