Sha256: 8154123723d4f2019a33f30ddf429f52fb9c4f4335df2284d283b88e6ee8d691

Contents?: true

Size: 508 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 1 rubygems

Version Path
no_notifier_needed-2.2.4 lib/no_notifier_needed/config.rb
no_notifier_needed-2.2.3 lib/no_notifier_needed/config.rb
no_notifier_needed-2.2.2 lib/no_notifier_needed/config.rb
no_notifier_needed-2.2.1 lib/no_notifier_needed/config.rb
no_notifier_needed-2.2.0 lib/no_notifier_needed/config.rb
no_notifier_needed-2.1.0 lib/no_notifier_needed/config.rb
no_notifier_needed-2.0.17 lib/no_notifier_needed/config.rb