class Rpush::Daemon::Wns::BadgeRequestPayload
Public Class Methods
new(notification)
click to toggle source
# File lib/rpush/daemon/wns/badge_request.rb, line 27 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 31 def to_xml "<badge value=\"#{@badge}\"/>" end