Module: NotifieeAPI
- Defined in:
- lib/notifiee-ruby.rb,
lib/notifiee_api/client.rb,
lib/notifiee_api/version.rb,
lib/notifiee_api/exceptions.rb,
lib/notifiee_api/notifications.rb
Defined Under Namespace
Classes: Client, Error, Notifications, Unauthorized
Constant Summary collapse
- VERSION =
"1.0.2"
Class Method Summary collapse
Class Method Details
.notify(notifiees, channels, message, **params) ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/notifiee-ruby.rb', line 10 def notify(notifiees, channels, , **params) payload = params.merge( notifiees: notifiees, channels: channels, message: ) NotifieeAPI::Notifications.create(payload) end |