example for ruby-api that sends an event after read it from a file