Class: Conductor::Http::Models::EventHandlerAction
- Defined in:
- lib/conductor/http/models/event_handler.rb
Overview
Action within an event handler
Defined Under Namespace
Modules: ActionType
Constant Summary collapse
- SWAGGER_TYPES =
{ action: 'String', start_workflow: 'StartWorkflow', complete_task: 'TaskDetails', fail_task: 'TaskDetails', expand_inline_json: 'Boolean' }.freeze
- ATTRIBUTE_MAP =
{ action: :action, start_workflow: :start_workflow, complete_task: :complete_task, fail_task: :fail_task, expand_inline_json: :expandInlineJSON }.freeze
Instance Attribute Summary collapse
-
#action ⇒ Object
Returns the value of attribute action.
-
#complete_task ⇒ Object
Returns the value of attribute complete_task.
-
#expand_inline_json ⇒ Object
Returns the value of attribute expand_inline_json.
-
#fail_task ⇒ Object
Returns the value of attribute fail_task.
-
#start_workflow ⇒ Object
Returns the value of attribute start_workflow.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ EventHandlerAction
constructor
A new instance of EventHandlerAction.
Methods inherited from BaseModel
attribute_map, deserialize_model, deserialize_value, find_model_class, from_hash, from_json, parse_datetime, swagger_types, #to_h, #to_json
Constructor Details
#initialize(params = {}) ⇒ EventHandlerAction
Returns a new instance of EventHandlerAction.
65 66 67 68 69 70 71 |
# File 'lib/conductor/http/models/event_handler.rb', line 65 def initialize(params = {}) @action = params[:action] @start_workflow = params[:start_workflow] @complete_task = params[:complete_task] @fail_task = params[:fail_task] @expand_inline_json = params.fetch(:expand_inline_json, false) end |
Instance Attribute Details
#action ⇒ Object
Returns the value of attribute action.
63 64 65 |
# File 'lib/conductor/http/models/event_handler.rb', line 63 def action @action end |
#complete_task ⇒ Object
Returns the value of attribute complete_task.
63 64 65 |
# File 'lib/conductor/http/models/event_handler.rb', line 63 def complete_task @complete_task end |
#expand_inline_json ⇒ Object
Returns the value of attribute expand_inline_json.
63 64 65 |
# File 'lib/conductor/http/models/event_handler.rb', line 63 def @expand_inline_json end |
#fail_task ⇒ Object
Returns the value of attribute fail_task.
63 64 65 |
# File 'lib/conductor/http/models/event_handler.rb', line 63 def fail_task @fail_task end |
#start_workflow ⇒ Object
Returns the value of attribute start_workflow.
63 64 65 |
# File 'lib/conductor/http/models/event_handler.rb', line 63 def start_workflow @start_workflow end |