Class: RubyUIAdmin::Structure::Tab
- Inherits:
-
Object
- Object
- RubyUIAdmin::Structure::Tab
- Defined in:
- lib/ruby_ui_admin/structure.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#items ⇒ Object
readonly
Returns the value of attribute items.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, description: nil) ⇒ Tab
constructor
A new instance of Tab.
Constructor Details
#initialize(name, description: nil) ⇒ Tab
Returns a new instance of Tab.
33 34 35 36 37 |
# File 'lib/ruby_ui_admin/structure.rb', line 33 def initialize(name, description: nil) @name = name @description = description @items = [] end |
Instance Attribute Details
#description ⇒ Object (readonly)
Returns the value of attribute description.
31 32 33 |
# File 'lib/ruby_ui_admin/structure.rb', line 31 def description @description end |
#items ⇒ Object (readonly)
Returns the value of attribute items.
31 32 33 |
# File 'lib/ruby_ui_admin/structure.rb', line 31 def items @items end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
31 32 33 |
# File 'lib/ruby_ui_admin/structure.rb', line 31 def name @name end |