Sha256: 76258f448773b751dd740a08b392011198d8d80cace6ba7de2d8d80ead743902
Contents?: true
Size: 646 Bytes
Versions: 6
Compression:
Stored size: 646 Bytes
Contents
module FiveMobilePush class Notifier # Simple proxy class for building messages. Do not use this class directly. class Message # @param [String] body The text to send def body(body) @body = body end # @param [Hash] meta_data (optional) The optional meta data to send. def meta_data(meta_data) @meta_data = meta_data end # @private def self.dsl(&block) instance = new block.call(instance) instance.to_payload end # @private def to_payload FiveMobilePush::Payload.new(@body, @meta_data || {}) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems