Class: Uchi::Ui::PageHeader
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- Uchi::Ui::PageHeader
- Defined in:
- app/components/uchi/ui/page_header.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(title:, description: nil) ⇒ PageHeader
constructor
A new instance of PageHeader.
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
6 7 8 |
# File 'app/components/uchi/ui/page_header.rb', line 6 def description @description end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
6 7 8 |
# File 'app/components/uchi/ui/page_header.rb', line 6 def title @title end |