Class: Jav::Fields::TagsField::TagComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/jav/fields/tags_field/tag_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(label: nil, title: nil) ⇒ TagComponent

Returns a new instance of TagComponent.



6
7
8
9
# File 'app/components/jav/fields/tags_field/tag_component.rb', line 6

def initialize(label: nil, title: nil)
  @label = label
  @title = title
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



4
5
6
# File 'app/components/jav/fields/tags_field/tag_component.rb', line 4

def label
  @label
end

#titleObject (readonly)

Returns the value of attribute title.



4
5
6
# File 'app/components/jav/fields/tags_field/tag_component.rb', line 4

def title
  @title
end