Class: Mxrb::Dsl::LoopBuilder
- Inherits:
-
Object
- Object
- Mxrb::Dsl::LoopBuilder
- Includes:
- FlowBodyDsl
- Defined in:
- lib/mxrb/dsl/builder.rb
Instance Method Summary collapse
-
#initialize(variable, as:) ⇒ LoopBuilder
constructor
A new instance of LoopBuilder.
- #to_h ⇒ Object
Methods included from FlowBodyDsl
#aggregate, #call_microflow, #call_rest, #cast, #change_list, #change_object, #change_variable, #close_page, #commit, #continue_loop, #create_list, #create_object, #create_variable, #decision, #delete, #end_flow, #error_event, #list_operation, #log_message, #loop_over, #rescue_all, #retrieve_association, #retrieve_objects, #return_value, #rollback, #show_message, #show_page, #type_decision, #validation_feedback, #while_loop
Constructor Details
#initialize(variable, as:) ⇒ LoopBuilder
Returns a new instance of LoopBuilder.
1587 1588 1589 1590 1591 |
# File 'lib/mxrb/dsl/builder.rb', line 1587 def initialize(variable, as:) @variable = variable @iterator = as @activities = [] end |
Instance Method Details
#to_h ⇒ Object
1593 1594 1595 |
# File 'lib/mxrb/dsl/builder.rb', line 1593 def to_h { type: :loop_over, variable: @variable, iterator: @iterator, activities: @activities } end |