Module: Choria::Orchestrator::RpcResponse
- Defined in:
- lib/choria/orchestrator.rb
Instance Method Summary collapse
Instance Method Details
#rpc_error? ⇒ Boolean
14 15 16 |
# File 'lib/choria/orchestrator.rb', line 14 def rpc_error? !rpc_success? end |
#rpc_success? ⇒ Boolean
18 19 20 |
# File 'lib/choria/orchestrator.rb', line 18 def rpc_success? [0, 1].include? self[:body][:statuscode] end |
#sender ⇒ Object
10 11 12 |
# File 'lib/choria/orchestrator.rb', line 10 def sender self[:senderid] end |
#task_id ⇒ Object
22 23 24 |
# File 'lib/choria/orchestrator.rb', line 22 def task_id self[:body][:data][:task_id] end |