Module: Choria::Orchestrator::RpcResponse

Defined in:
lib/choria/orchestrator.rb

Instance Method Summary collapse

Instance Method Details

#rpc_error?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/choria/orchestrator.rb', line 14

def rpc_error?
  !rpc_success?
end

#rpc_success?Boolean

Returns:

  • (Boolean)


18
19
20
# File 'lib/choria/orchestrator.rb', line 18

def rpc_success?
  [0, 1].include? self[:body][:statuscode]
end

#senderObject



10
11
12
# File 'lib/choria/orchestrator.rb', line 10

def sender
  self[:senderid]
end

#task_idObject



22
23
24
# File 'lib/choria/orchestrator.rb', line 22

def task_id
  self[:body][:data][:task_id]
end