Sha256: 6d7cb8e3ef1ccb6ebd0938ff993c2856482f899d109892756539dd74ad7672a2
Contents?: true
Size: 905 Bytes
Versions: 3
Compression:
Stored size: 905 Bytes
Contents
require 'umengo/service' module Umengo module Req include Umengo::Service def broadcast(opts) basic_data = { type: 'broadcast', production_mode: opts[:production_mode] || "false" } opts[:data] = opts.fetch(:data, {}).merge(basic_data) push(@plantform, opts) end def unicast(device_tokens, opts) basic_data = { device_tokens: device_tokens, type: 'unicast', production_mode: opts[:production_mode] || "false" } opts[:data] = opts.fetch(:data, {}).merge(basic_data) push(@plantform, opts) end def listcast(device_tokens, opts) basic_data = { device_tokens: device_tokens, type: 'listcast', production_mode: opts[:production_mode] || "false" } opts[:data] = opts.fetch(:data, {}).merge(basic_data) push(@plantform, opts) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
umengo-0.3.0 | lib/umengo/req.rb |
umengo-0.2.0 | lib/umengo/req.rb |
umengo-0.1.0 | lib/umengo/req.rb |