Sha256: 23863e91888e38f1fe0a66be454778635aec73fd571dbcd606894f45a0612ecf

Contents?: true

Size: 567 Bytes

Versions: 5

Compression:

Stored size: 567 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,
    ].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

5 entries across 5 versions & 1 rubygems

Version Path
no_notifier_needed-2.3.4 lib/no_notifier_needed/config.rb
no_notifier_needed-2.3.3 lib/no_notifier_needed/config.rb
no_notifier_needed-2.3.2 lib/no_notifier_needed/config.rb
no_notifier_needed-2.3.1 lib/no_notifier_needed/config.rb
no_notifier_needed-2.3.0 lib/no_notifier_needed/config.rb