Class: Suj::Pusher::WnpsNotification
- Inherits:
-
Object
- Object
- Suj::Pusher::WnpsNotification
- Includes:
- Logger
- Defined in:
- lib/suj/pusher/wpns_notification.rb
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(options = {}) ⇒ WnpsNotification
constructor
A new instance of WnpsNotification.
- #payload ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ WnpsNotification
Returns a new instance of WnpsNotification.
7 8 9 |
# File 'lib/suj/pusher/wpns_notification.rb', line 7 def initialize( = {}) @options = end |
Instance Method Details
#data ⇒ Object
15 16 17 |
# File 'lib/suj/pusher/wpns_notification.rb', line 15 def data @data ||= encode_data end |
#payload ⇒ Object
11 12 13 |
# File 'lib/suj/pusher/wpns_notification.rb', line 11 def payload @payload ||= MultiJson.dump(@options[:data] || {}) end |