class Coppertone::Mechanism::A

Implements the A mechanism.

Public Class Methods

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

Public Instance Methods

match_target_name(macro_context, request_context, target_name) click to toggle source
# File lib/coppertone/mechanism/a.rb, line 8
def match_target_name(macro_context, request_context, target_name)
  Coppertone::Utils::IPInDomainChecker
    .new(macro_context, request_context)
    .check(target_name, ip_v4_cidr_length, ip_v6_cidr_length)
end