Sha256: fd08d53e4eb97e8184125d3dc440bbc662d3fc9fa9f144d36b50b4f6e9e512f6
Contents?: true
Size: 1.1 KB
Versions: 1
Compression:
Stored size: 1.1 KB
Contents
require 'active_support/configurable' module ShortMessage def self.configure(&block) yield @config ||= ShortMessage::Configuration.new end def self.config @config end class Configuration #:nodoc: include ActiveSupport::Configurable config_accessor :gateway_server config_accessor :gateway_port config_accessor :send_file_path config_accessor :account_functions_path config_accessor :user_id config_accessor :ccu_id config_accessor :id_string config_accessor :default_sms_sender config_accessor :default_reload_amount config_accessor :reload_notification_email config_accessor :admin_notification_email config_accessor :voucher_notification_email config_accessor :default_mail_sender def param_name config.param_name.respond_to?(:call) ? config.param_name.call : config.param_name end # define param_name writer (copied from AS::Configurable) writer, line = 'def param_name=(value); config.param_name = value; end', __LINE__ singleton_class.class_eval writer, __FILE__, line class_eval writer, __FILE__, line end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
short_message-0.1.0 | lib/short_message/config.rb |