Method: OEHClient::Realtime::Interaction#send

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

#send(parameters = {}) ⇒ Object

send() will post a new interaction using either the realtime (current timestamp) or the offline (historic)

API interface based on the existence of a timestamp value


142
143
144
145
146
147
148
149
150
151
# File 'lib/oehclient/realtime/interaction.rb', line 142

def send(parameters={})
	# raise the MissingParameterException when one (or more) of the miminal parameters are missing
	raise OEHClient::Exception::MissingParameterException.new(missing_minimal_parameters) 	unless (minimal_parameters?)

	# call the appropriate method based on the existance of the timestamp value
	#(([email protected]?) ? send_offline(parameters) : send_realtime(parameters))
	send_realtime(parameters)
	# return the current instance interacton
	self
end