pedroandrade/pushwoosh

View on GitHub
lib/pushwoosh.rb

Summary

Maintainability
A
0 mins
Test Coverage
require "pushwoosh/version"
require 'pushwoosh/push_notification'
require 'pushwoosh/configurable'
require 'httparty'
require 'pushwoosh/helpers'

module Pushwoosh
  extend Pushwoosh::Configurable

  class << self

    def notify_all(message, notification_options = {})
      PushNotification.new(options).notify_all(message, notification_options)
    end

    def notify_devices(message, devices = [], notification_options = {})
      PushNotification.new(options).notify_devices(message, devices, notification_options)
    end

  end
end