Module: DeepThought::Notifier

Defined in:
lib/deep_thought/notifier.rb

Class Method Summary collapse

Class Method Details

.notify(user, message) ⇒ Object



5
6
7
8
9
10
11
# File 'lib/deep_thought/notifier.rb', line 5

def self.notify(user, message)
  begin
    HTTParty.post("#{user.notification_url}", :body => {:message => message}.to_json, :headers => {'Content-Type' => 'application/json'})
  rescue
    'poop'
  end
end