lib/nutella_lib/net.rb in nutella_lib-0.3.0 vs lib/nutella_lib/net.rb in nutella_lib-0.3.1
- old
+ new
@@ -90,11 +90,11 @@
# Message can be:
# empty (equivalent of a GET)
# string (the string will be wrapped into a JSON string automatically. Format: {"payload":"<message>"})
# hash (the hash will be converted into a JSON string automatically)
# json string (the JSON string will be sent as is)
- def Net.sync_req (channel, message=nil)
+ def Net.sync_request (channel, message=nil)
# Pad channel
new_channel = "#{Nutella.run_id}/#{channel}"
# Prepare message
m, id = prepare_message_for_request message
# Initialize response
@@ -122,10 +122,10 @@
# Message can be:
# empty (equivalent of a GET)
# string (the string will be wrapped into a JSON string automatically. Format: {"payload":"<message>"})
# hash (the hash will be converted into a JSON string automatically)
# json string (the JSON string will be sent as is)
- def Net.async_req (channel, message=nil, callback)
+ def Net.async_request (channel, message=nil, callback)
# Pad channel
new_channel = "#{Nutella.run_id}/#{channel}"
# Prepare message
m, id = prepare_message_for_request message
# Initialize response
\ No newline at end of file