Class: Avo::Resources::Items::ItemGroup::Builder
- Inherits:
-
Object
- Object
- Avo::Resources::Items::ItemGroup::Builder
- Includes:
- Concerns::BorrowItemsHolder
- Defined in:
- lib/avo/resources/items/item_group.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#build ⇒ Object
Fetch the tab.
-
#initialize(parent:, name: nil, **args) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(parent:, name: nil, **args) ⇒ Builder
Returns a new instance of Builder.
35 36 37 38 |
# File 'lib/avo/resources/items/item_group.rb', line 35 def initialize(parent:, name: nil, **args) @panel = Avo::Resources::Items::Panel.new(name: name, **args) @items_holder = Avo::Resources::Items::Holder.new(from: self.class, parent: parent) end |
Instance Method Details
#build ⇒ Object
Fetch the tab
41 42 43 44 |
# File 'lib/avo/resources/items/item_group.rb', line 41 def build @panel.items_holder = @items_holder @panel end |