Method: OEHClient::Realtime::Event#send

Defined in:
lib/oehclient/realtime/event.rb

#send(properties = {}) ⇒ Object



58
59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/oehclient/realtime/event.rb', line 58

def send(properties={})

	send_args 			= {:payload => ActiveSupport::JSON.encode(request_data(properties))}
	send_args[:header] 	= properties[:header]  if (!properties.nil? && properties.has_key?(:header))

	# send the POST or PUT methond along with the arguments to the OEHClient class
	map_response(OEHClient.send(OEHClient::Helper::Request::POST_METHOD.to_sym, 
					request_url,
					nil,
					send_args))

	self		
end