Class: Conductor::Http::Models::EventHandler
- Defined in:
- lib/conductor/http/models/event_handler.rb
Overview
Event handler definition
Constant Summary collapse
- SWAGGER_TYPES =
{ name: 'String', event: 'String', condition: 'String', actions: 'Array<EventHandlerAction>', active: 'Boolean', evaluator_type: 'String' }.freeze
- ATTRIBUTE_MAP =
{ name: :name, event: :event, condition: :condition, actions: :actions, active: :active, evaluator_type: :evaluatorType }.freeze
Instance Attribute Summary collapse
-
#actions ⇒ Object
Returns the value of attribute actions.
-
#active ⇒ Object
Returns the value of attribute active.
-
#condition ⇒ Object
Returns the value of attribute condition.
-
#evaluator_type ⇒ Object
Returns the value of attribute evaluator_type.
-
#event ⇒ Object
Returns the value of attribute event.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ EventHandler
constructor
A new instance of EventHandler.
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 = {}) ⇒ EventHandler
Returns a new instance of EventHandler.
28 29 30 31 32 33 34 35 |
# File 'lib/conductor/http/models/event_handler.rb', line 28 def initialize(params = {}) @name = params[:name] @event = params[:event] @condition = params[:condition] @actions = params[:actions] || [] @active = params.fetch(:active, true) @evaluator_type = params[:evaluator_type] end |
Instance Attribute Details
#actions ⇒ Object
Returns the value of attribute actions.
26 27 28 |
# File 'lib/conductor/http/models/event_handler.rb', line 26 def actions @actions end |
#active ⇒ Object
Returns the value of attribute active.
26 27 28 |
# File 'lib/conductor/http/models/event_handler.rb', line 26 def active @active end |
#condition ⇒ Object
Returns the value of attribute condition.
26 27 28 |
# File 'lib/conductor/http/models/event_handler.rb', line 26 def condition @condition end |
#evaluator_type ⇒ Object
Returns the value of attribute evaluator_type.
26 27 28 |
# File 'lib/conductor/http/models/event_handler.rb', line 26 def evaluator_type @evaluator_type end |
#event ⇒ Object
Returns the value of attribute event.
26 27 28 |
# File 'lib/conductor/http/models/event_handler.rb', line 26 def event @event end |
#name ⇒ Object
Returns the value of attribute name.
26 27 28 |
# File 'lib/conductor/http/models/event_handler.rb', line 26 def name @name end |