Sha256: 572aca971573eaedfd591565932b65bf7d3233e8efcaa669bd4b4392a6b673a0
Contents?: true
Size: 940 Bytes
Versions: 4
Compression:
Stored size: 940 Bytes
Contents
require "action_smser/engine" require "action_smser/base" require "action_smser/delivery_methods/test_array" require "action_smser/delivery_methods/simple_http" require "action_smser/delivery_methods/nexmo" require "action_smser/delivery_methods/delayed_job" module ActionSmser mattr_accessor :delivery_options self.delivery_options= {:delivery_method => :test_array, :save_delivery_reports => false, :default_ttl => (24*60*60) } self.delivery_options[:gateway_commit] = {} self.delivery_options[:gateway_commit_observers] = [] def self.gateway_commit_observer_add(observer_class) self.delivery_options[:gateway_commit_observers].push(observer_class) end class Logger def self.info(str) Rails.logger.info("ActionSmser: #{str}") end def self.warn(str) Rails.logger.warn("ActionSmser: #{str}") end def self.error(str) Rails.logger.error("ActionSmser: #{str}") end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
action_smser-2.0.2 | lib/action_smser.rb |
action_smser-2.0.1 | lib/action_smser.rb |
action_smser-2.0.0 | lib/action_smser.rb |
action_smser-1.2.1 | lib/action_smser.rb |