Sha256: 3e0b6471077de252904093b6b3e56a074cf29f24121ccf4e9fc3423887cd387d

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_password,
      :gmail_user_name,
      :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.5 lib/no_notifier_needed/config.rb