Sha256: f5bb9b2e7e65806905e9b14b8ba61a1bb33aa26fcc8e9d1c2f30e62c0a5e4d5c

Contents?: true

Size: 628 Bytes

Versions: 1

Compression:

Stored size: 628 Bytes

Contents

module NoNotifierNeeded
  module Config

    VALID_OPTIONS_KEYS = [
      :from_email,
      :from_name,
      :bcc,
      :reply_to,
      :host,
      :controller,
      :action,
      :mandrill_user_name,
      :mandrill_password,
      :mandrill_port,
      :current_user_model,
      :current_user_id_method,
      :gmail_user_name,
      :gmail_password,
      :domain
    ].freeze

    # @private
    attr_accessor *VALID_OPTIONS_KEYS

    # Create a hash of options and their values
    def options
      VALID_OPTIONS_KEYS.inject({}) do |option, key|
        option.merge!(key => send(key))
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
no_notifier_needed-2.3.6 lib/no_notifier_needed/config.rb