Class: Avo::Resources::Items::Row::Builder

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

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Builder.



31
32
33
34
# File 'lib/avo/resources/items/row.rb', line 31

def initialize(parent:, **args)
  @row = Avo::Resources::Items::Row.new(**args)
  @items_holder = Avo::Resources::Items::Holder.new(parent: @parent)
end

Instance Method Details

#buildObject

Fetch the tab



37
38
39
40
# File 'lib/avo/resources/items/row.rb', line 37

def build
  @row.items_holder = @items_holder
  @row
end