class Coppertone::Modifier::Redirect

A Redirect modifier found in an SPF record.

Public Class Methods

create(attributes) click to toggle source
# File lib/coppertone/modifier/redirect.rb, line 7
def self.create(attributes)
  new(attributes)
end
label() click to toggle source
# File lib/coppertone/modifier/redirect.rb, line 26
def self.label
  'redirect'
end

Public Instance Methods

evaluate(macro_context, request_context) click to toggle source
# File lib/coppertone/modifier/redirect.rb, line 11
def evaluate(macro_context, request_context)
  request_context.register_dns_lookup_term
  target_name_from_domain_spec(macro_context, request_context)
end
included_record(macro_context, request_context) click to toggle source
# File lib/coppertone/modifier/redirect.rb, line 16
def included_record(macro_context, request_context)
  RedirectRecordFinder.new(self, macro_context, request_context).record
end
target_domain() click to toggle source
# File lib/coppertone/modifier/redirect.rb, line 20
def target_domain
  raise NeedsContextError if context_dependent?

  arguments
end