Sha256: 33ded61ad44535a80561ae6bfc241b9ed409486ef76b52b6bd5d24830c9a0f50
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
five_mobile_push-0.4.1 | lib/five_mobile_push/message.rb |