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:) ⇒ HeadingComponent

Returns a new instance of HeadingComponent.



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

def initialize(value:, as_html:)
  @value = value
  @as_html = as_html
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

#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