Class: Avo::Resources::Items::Tab::Builder
- Inherits:
-
Object
- Object
- Avo::Resources::Items::Tab::Builder
- Defined in:
- lib/avo/resources/items/tab.rb
Instance Attribute Summary collapse
-
#items_holder ⇒ Object
readonly
Returns the value of attribute items_holder.
Class Method Summary collapse
Instance Method Summary collapse
-
#build ⇒ Object
Fetch the tab.
-
#initialize(name: nil, **args) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
Instance Attribute Details
#items_holder ⇒ Object (readonly)
Returns the value of attribute items_holder.
42 43 44 |
# File 'lib/avo/resources/items/tab.rb', line 42 def items_holder @items_holder end |
Class Method Details
.parse_block(**args, &block) ⇒ Object
37 38 39 |
# File 'lib/avo/resources/items/tab.rb', line 37 def parse_block(**args, &block) Docile.dsl_eval(new(**args), &block).build end |
Instance Method Details
#build ⇒ Object
Fetch the tab
55 56 57 58 |
# File 'lib/avo/resources/items/tab.rb', line 55 def build @tab.items_holder = @items_holder @tab end |