Class: AllQ::AddServer
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#build_job, #initialize, #rcv, #send_hash_as_json, #setup
Constructor Details
This class inherits a constructor from AllQ::Base
Instance Method Details
#base_send(server_url) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/allq/actions/add_server.rb', line 11 def base_send(server_url) { 'action' => 'add_server', 'params' => { 'server_url' => server_url } } end |
#snd(data) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/allq/actions/add_server.rb', line 4 def snd(data) server_url = data[:server_url] send_data = base_send(server_url) response = send_hash_as_json(send_data, true) rcv(response) end |