Sha256: 03a49bfee9fb9cea9254385c3016189fd6ccf03ca4c1d6bab57de562e5009b1f

Contents?: true

Size: 330 Bytes

Versions: 10

Compression:

Stored size: 330 Bytes

Contents

module Moromi::Apns::Message
  class Announce < Base
    def self.make(message:, url: nil, badge: 1)
      custom_data = {
        params: {
          url: url
        }
      }
      parameter = Moromi::Apns::Parameter.new(alert: message, badge: badge, custom_data: custom_data)
      new(parameter: parameter)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
moromi-apns-0.10.0 lib/moromi/apns/message/announce.rb
moromi-apns-0.9.0 lib/moromi/apns/message/announce.rb
moromi-apns-0.8.0 lib/moromi/apns/message/announce.rb
moromi-apns-0.7.0 lib/moromi/apns/message/announce.rb
moromi-apns-0.6.0 lib/moromi/apns/message/announce.rb
moromi-apns-0.5.0 lib/moromi/apns/message/announce.rb
moromi-apns-0.4.0 lib/moromi/apns/message/announce.rb
moromi-apns-0.3.0 lib/moromi/apns/message/announce.rb
moromi-apns-0.2.0 lib/moromi/apns/message/announce.rb
moromi-apns-0.1.0 lib/moromi/apns/message/announce.rb