class Rpush::Daemon::Wns::BadgeRequestPayload

Public Class Methods

new(notification) click to toggle source
# File lib/rpush/daemon/wns/badge_request.rb, line 22
def initialize(notification)
  @badge = notification.badge || 0
end

Public Instance Methods

to_xml() click to toggle source
# File lib/rpush/daemon/wns/badge_request.rb, line 26
def to_xml
  "<badge value=\"#{@badge}\"/>"
end