Kiss Metrics Ruby API

hey there I have a question about the ruby API for an event I would like to add that is happening in a user dashboard of ours.

Our whole site is tracked using the javascript API but there is a particular state 'done' that has to be completed by different user logging into a dashboard and clicking a checkbox which then triggers this "done" state. There has been a hook has been set up in a model for callback when the state changes so now i need to use the Ruby API to send this info to KISS

so in the model I need to walk through the object relationships and find the user to identify when the event is reported

can it be done like this:

when :booked         KM.init("Our API KEY")         KM.identify('auction.business.user.email')         KM.record('done')

or do I need to find the user's email with another method before initiating the API key?