Sha256: ab636394b2eee756d39c7bf200c3e39f3b1f9aa3151bc5ada85e80f5a38524d4

Contents?: true

Size: 486 Bytes

Versions: 2

Compression:

Stored size: 486 Bytes

Contents

module NoNotifierNeeded
  module Config

    VALID_OPTIONS_KEYS = [
      :from_email,
      :from_name,
      :bcc,
      :reply_to,
      :host,
      :controller,
      :action,
      :mandrill_user_name,
      :mandrill_password
    ].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

2 entries across 2 versions & 1 rubygems

Version Path
no_notifier_needed-2.0.15 lib/no_notifier_needed/config.rb
no_notifier_needed-2.0.14 lib/no_notifier_needed/config.rb