Class: Mio::Model::AddToGroupAction
- Inherits:
-
Mio::Model
- Object
- Mio::Model
- Mio::Model::AddToGroupAction
- Defined in:
- lib/mio/model/add_to_group_action.rb
Instance Attribute Summary
Attributes inherited from Mio::Model
Instance Method Summary collapse
Methods inherited from Mio::Model
#configure, #create, field, #go, #initialize, mappings, nested, #set_enable, set_resource, #set_start, #validate
Constructor Details
This class inherits a constructor from Mio::Model
Instance Method Details
#config_hash ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/mio/model/add_to_group_action.rb', line 23 def config_hash h = {} unless @args.targetAssetId.to_s == '' h['target-asset-id'] = @args.targetAssetId end unless @args.groupName.to_s == '' h['group-name'] = @args.groupName end unless @args.referenceNamePrefix.to_s == '' h['reference-name-prefix'] = @args.referenceNamePrefix end h end |
#create_hash ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'lib/mio/model/add_to_group_action.rb', line 14 def create_hash plugin = 'tv.nativ.mio.enterprise.execution.action.file.impl.group.GroupManipulationCommand' {name: @args.name, pluginClass: plugin, type: 'add-to-group', visibilityIds: @args.visibility} end |