Class: LeanCms::SectionComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/lean_cms/section_component.rb

Instance Attribute Summary collapse

Attributes inherited from BaseComponent

#page

Instance Method Summary collapse

Constructor Details

#initialize(section:, title: nil, page: nil, **options) ⇒ SectionComponent

Returns a new instance of SectionComponent.



5
6
7
8
9
10
# File 'app/components/lean_cms/section_component.rb', line 5

def initialize(section:, title: nil, page: nil, **options)
  super(page: page)
  @section = section
  @title = title
  @options = options
end

Instance Attribute Details

#sectionObject (readonly)

Returns the value of attribute section.



3
4
5
# File 'app/components/lean_cms/section_component.rb', line 3

def section
  @section
end

#titleObject (readonly)

Returns the value of attribute title.



3
4
5
# File 'app/components/lean_cms/section_component.rb', line 3

def title
  @title
end