Class: Avo::Resources::Items::Tab::Builder
- Inherits:
-
Object
- Object
- Avo::Resources::Items::Tab::Builder
- Includes:
- Concerns::BorrowItemsHolder
- Defined in:
- lib/avo/resources/items/tab.rb
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.
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
#build ⇒ Object
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 |