Class: Spina::Forms::GroupComponent

Inherits:
ApplicationComponent show all
Defined in:
app/components/spina/forms/group_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject (readonly)

Returns the value of attribute description.



4
5
6
# File 'app/components/spina/forms/group_component.rb', line 4

def description
  @description
end

#labelObject (readonly)

Returns the value of attribute label.



4
5
6
# File 'app/components/spina/forms/group_component.rb', line 4

def label
  @label
end