Sha256: bb076c083055e68d3d503e05ffe1f0a47b18ea245db66d65b0ac691873757dbd
Contents?: true
Size: 534 Bytes
Versions: 2
Compression:
Stored size: 534 Bytes
Contents
module Chargify module Loops def self.delegate_hook(event, payload) loops[event] && loops[event].each do |block| block.call payload end end def self.loops @loops ||= {} end def self.loop!(event, &block) loops[event] ||= [] loops[event] << block end def self.shared_key @shared_key || '' end def self.shared_key=(key) @shared_key = key end end end require 'digest/md5' require 'chargify/loops/version' require 'chargify/loops/engine'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chargify-loops-0.2.0 | lib/chargify/loops.rb |
chargify-loops-0.1.0 | lib/chargify/loops.rb |