Class: Coppertone::Mechanism::A
- Inherits:
-
DomainSpecWithDualCidr
- Object
- Coppertone::Mechanism
- DomainSpecMechanism
- DomainSpecWithDualCidr
- Coppertone::Mechanism::A
- Defined in:
- lib/coppertone/mechanism/a.rb
Overview
Implements the A mechanism.
Constant Summary
Constants inherited from DomainSpecWithDualCidr
DomainSpecWithDualCidr::CIDR_REGEXP
Instance Attribute Summary
Attributes inherited from DomainSpecMechanism
Attributes inherited from Coppertone::Mechanism
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from DomainSpecWithDualCidr
#==, #clean_matches, create, #generate_target_name, #handle_invalid_domain, #hash, #initialize, #ip_v4_cidr_length, #ip_v6_cidr_length, #match?, #parse_argument, #parse_domain_spec, #parse_v4_cidr_length, #parse_v6_cidr_length, #process_matches
Methods inherited from DomainSpecMechanism
#==, #context_dependent?, dns_lookup_term?, #hash, #includes_ptr?, #target_domain, #target_name_from_domain_spec, #trim_domain_spec
Methods inherited from Coppertone::Mechanism
build, class_builder, #context_dependent?, dns_lookup_term?, #dns_lookup_term?, #includes_ptr?, #initialize, register, #to_s
Constructor Details
This class inherits a constructor from Coppertone::Mechanism::DomainSpecWithDualCidr
Class Method Details
.label ⇒ Object
14 15 16 |
# File 'lib/coppertone/mechanism/a.rb', line 14 def self.label 'a' end |
Instance Method Details
#match_target_name(macro_context, request_context, target_name) ⇒ Object
8 9 10 11 12 |
# 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 |