Class: Junkie::Push::Endpoint
- Inherits:
-
Object
- Object
- Junkie::Push::Endpoint
- Defined in:
- lib/junkie/push/endpoint.rb
Constant Summary collapse
- DEFAULT_CONFIG =
{ gcm_app_key: '', }
Instance Method Summary collapse
-
#initialize(channels) ⇒ Endpoint
constructor
A new instance of Endpoint.
Methods included from Log
Methods included from Config
collect_default_configs, get_config, included
Constructor Details
#initialize(channels) ⇒ Endpoint
Returns a new instance of Endpoint.
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/junkie/push/endpoint.rb', line 12 def initialize(channels) channels[:push_registration].subscribe do |reg| type, regid = reg puts "Add registration %s=%s" % [type, regid] end channels[:push_episode_count].subscribe do |count| puts "Count of encrypted episode links: %d" % [count] end end |