Class: HazWebhooks::Webhook
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- HazWebhooks::Webhook
- Includes:
- HTTParty
- Defined in:
- lib/haz_webhooks/webhook.rb
Instance Method Summary collapse
Instance Method Details
#fire(data) ⇒ Object
14 15 16 17 18 |
# File 'lib/haz_webhooks/webhook.rb', line 14 def fire(data) Thread.new do post(url, :query => data) end end |
#set(theURL) ⇒ Object
9 10 11 12 |
# File 'lib/haz_webhooks/webhook.rb', line 9 def set(theURL) self.url = theURL save end |