module Junkie module Push class Endpoint include Log, Config DEFAULT_CONFIG = { gcm_app_key: '', } 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 end end end