Module: RTPush
- Defined in:
- lib/rtpush.rb,
lib/rtpush/version.rb,
lib/rtpush/adapters/fcm_adapter.rb,
lib/rtpush/adapters/base_adapter.rb,
lib/rtpush/adapters/rpush_adapter.rb,
lib/rtpush/adapters/slack_adapter.rb,
lib/rtpush/adapters/twilio_adapter.rb,
lib/rtpush/adapters/instapush_adapter.rb
Defined Under Namespace
Modules: VERSION
Classes: BaseAdapter, FcmAdapter, InstapushAdapter, PresenceValidator, RpushAdapter, SlackAdapter, TwilioAdapter
Class Method Summary
collapse
Class Method Details
.initialize(options, message) ⇒ Object
6
7
8
9
10
|
# File 'lib/rtpush.rb', line 6
def self.initialize(options, message)
raise ArgumentError, 'Missing Message param' if message.to_s.empty?
raise ArgumentError, 'Missing Arguments params' if options.empty?
push(strategies(options), message)
end
|
.push(strategies, message) ⇒ Object
14
15
16
17
18
|
# File 'lib/rtpush.rb', line 14
def self.push(strategies, message)
strategies.each do |strategy|
strategy.push(message)
end
end
|
.strategies(options) ⇒ Object