Class: Dolphin::QueryProcessor

Inherits:
Object
  • Object
show all
Includes:
Celluloid, Util
Defined in:
lib/dolphin/query_processor.rb

Instance Method Summary collapse

Methods included from Util

#logger

Instance Method Details

#delete_notification(notification) ⇒ Object



31
32
33
34
35
# File 'lib/dolphin/query_processor.rb', line 31

def delete_notification(notification)
  logger :info, notification
  notification_id = notification[:id]
  send('delete_notification', notification_id)
end

#get_event(params) ⇒ Object



20
21
22
# File 'lib/dolphin/query_processor.rb', line 20

def get_event(params)
  send('get_event', params)
end

#get_notification(id) ⇒ Object



10
11
12
13
# File 'lib/dolphin/query_processor.rb', line 10

def get_notification(id)
  logger :info, "Get notification #{id}"
  send('get_notification', id)
end

#put_event(event) ⇒ Object



15
16
17
18
# File 'lib/dolphin/query_processor.rb', line 15

def put_event(event)
  logger :info, "Put event #{event}"
  send('put_event', event)
end

#put_notification(notification) ⇒ Object



24
25
26
27
28
29
# File 'lib/dolphin/query_processor.rb', line 24

def put_notification(notification)
  logger :info, notification
  notification_id = notification[:id]
  methods = notification[:methods]
  send('put_notification', notification_id, methods)
end