module Coppertone

A library for evaluating, creating, and analyzing SPF records

Constants

VERSION

Public Class Methods

config() click to toggle source
# File lib/coppertone.rb, line 7
def config
  @config ||= OpenStruct.new(defaults)
end
defaults() click to toggle source
# File lib/coppertone.rb, line 11
def defaults
  {
    hostname: nil,
    message_locale: 'en',
    terms_requiring_dns_lookup_limit: 10,
    dns_lookups_per_mx_mechanism_limit: 10,
    dns_lookups_per_ptr_mechanism_limit: 10,
    void_dns_result_limit: 2,
    dns_client_class: nil,
    default_explanation: 'DEFAULT'
  }
end
reset_config() click to toggle source

Used for testing.

# File lib/coppertone.rb, line 25
def reset_config
  @config = nil
end