class <%= class_name %>Event < ApplicationEvent iot_event "SELECT * FROM 'my/topic'" def <%= options[:method] %> puts "event #{JSON.dump(event)}" end end