Class: GeoConcerns::LocalMessagingClient

Inherits:
Object
  • Object
show all
Defined in:
app/services/geo_concerns/local_messaging_client.rb

Instance Method Summary collapse

Instance Method Details

#geoblacklight(message) ⇒ Object



10
11
12
# File 'app/services/geo_concerns/local_messaging_client.rb', line 10

def geoblacklight(message)
  GeoblacklightJob.perform_later(message)
end

#geoserver(message) ⇒ Object



14
15
16
# File 'app/services/geo_concerns/local_messaging_client.rb', line 14

def geoserver(message)
  DeliveryJob.perform_later(message)
end

#publish(message) ⇒ Object



3
4
5
6
7
8
# File 'app/services/geo_concerns/local_messaging_client.rb', line 3

def publish(message)
  processor = JSON.parse(message)['exchange']
  send(processor, JSON.parse(message))
rescue
  Rails.logger.warn "Unable to publish message with the local message client"
end