Class: Avo::Resources::Items::Tab::Builder

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

Instance Method Summary collapse

Constructor Details

#initialize(parent:, name: nil, **args) ⇒ Builder

Returns a new instance of Builder.



50
51
52
53
# File 'lib/avo/resources/items/tab.rb', line 50

def initialize(parent:, name: nil, **args)
  @tab = Avo::Resources::Items::Tab.new(name: name, **args)
  @items_holder = Avo::Resources::Items::Holder.new(parent: parent)
end

Instance Method Details

#buildObject

Fetch the tab



56
57
58
59
# File 'lib/avo/resources/items/tab.rb', line 56

def build
  @tab.items_holder = @items_holder
  @tab
end