Class: Atomsphere::Action::ExecuteProcess

Inherits:
Action
  • Object
show all
Defined in:
lib/atomsphere/action/execute_process.rb

Instance Attribute Summary

Attributes inherited from Action

#api_response, #response

Instance Method Summary collapse

Methods inherited from Action

inherited

Instance Method Details

#requestObject



7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'lib/atomsphere/action/execute_process.rb', line 7

def request
  {
    ProcessProperties: {
      '@type': 'ProcessProperties',
      ProcessProperty: [
        {
          '@type': '',
          Name: 'priority',
          Value: 'medium'
        }
      ]
    },
    atomId: atom_id
  }.merge(!process_id.nil? ?
    { processId: process_id } :
    { processName: process_name })
end