Class: AdminCore::ViewObject::SidebarTitle
- Inherits:
-
Object
- Object
- AdminCore::ViewObject::SidebarTitle
- Defined in:
- lib/admin_core/view_object/sidebar_title.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ SidebarTitle
constructor
A new instance of SidebarTitle.
- #to_hash ⇒ Object
Constructor Details
#initialize(name) ⇒ SidebarTitle
Returns a new instance of SidebarTitle.
5 6 7 |
# File 'lib/admin_core/view_object/sidebar_title.rb', line 5 def initialize(name) @name = name end |
Instance Method Details
#to_hash ⇒ Object
Note:
Implements SidebarTitle flow type
10 11 12 13 14 15 |
# File 'lib/admin_core/view_object/sidebar_title.rb', line 10 def to_hash { displayName: @name, type: 'title' } end |