class Coppertone::Mechanism::Ptr

Implements the ptr mechanism.

Public Class Methods

label() click to toggle source
# File lib/coppertone/mechanism/ptr.rb, line 15
def self.label
  'ptr'
end

Public Instance Methods

match_target_name(macro_context, request_context, target_name) click to toggle source
# File lib/coppertone/mechanism/ptr.rb, line 7
def match_target_name(macro_context, request_context, target_name)
  matching_name =
    Coppertone::Utils::ValidatedDomainFinder
    .new(macro_context, request_context)
    .find(target_name)
  !matching_name.nil?
end