Class: StickyElephant::Handler::Query
- Defined in:
- lib/sticky_elephant/handler/query.rb
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from StickyElephant::Handler::Base
Instance Method Details
#process ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/sticky_elephant/handler/query.rb', line 4 def process log(msg: "#{payload}", level: :info) report_query(payload.to_s) socket.write( PostgresSimulator.new( extract_query_from(payload) ) ) end |