Class: Avo::Resources::Items::ItemGroup::Builder

Inherits:
Object
  • Object
show all
Includes:
Concerns::BorrowItemsHolder
Defined in:
lib/avo/resources/items/item_group.rb

Direct Known Subclasses

MainPanel::Builder

Instance Method Summary collapse

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

#buildObject

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