Class: Uchi::Ui::PageHeader

Inherits:
ViewComponent::Base
  • Object
show all
Defined in:
app/components/uchi/ui/page_header.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(title:, description: nil) ⇒ PageHeader

Returns a new instance of PageHeader.



11
12
13
14
15
# File 'app/components/uchi/ui/page_header.rb', line 11

def initialize(title:, description: nil)
  super()
  @description = description
  @title = title
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



6
7
8
# File 'app/components/uchi/ui/page_header.rb', line 6

def description
  @description
end

#titleObject (readonly)

Returns the value of attribute title.



6
7
8
# File 'app/components/uchi/ui/page_header.rb', line 6

def title
  @title
end