Class: Avo::Fields::Common::HeadingComponent

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/avo/fields/common/heading_component.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value:, as_html:, empty:) ⇒ HeadingComponent

Returns a new instance of HeadingComponent.



8
9
10
11
12
# File 'app/components/avo/fields/common/heading_component.rb', line 8

def initialize(value:, as_html:, empty:)
  @value = value
  @as_html = as_html
  @empty = empty
end

Instance Attribute Details

#as_htmlObject (readonly)

Returns the value of attribute as_html.



5
6
7
# File 'app/components/avo/fields/common/heading_component.rb', line 5

def as_html
  @as_html
end

#emptyObject (readonly)

Returns the value of attribute empty.



6
7
8
# File 'app/components/avo/fields/common/heading_component.rb', line 6

def empty
  @empty
end

#valueObject (readonly)

Returns the value of attribute value.



4
5
6
# File 'app/components/avo/fields/common/heading_component.rb', line 4

def value
  @value
end