Class: LostSocks::Verifier
- Inherits:
-
Object
- Object
- LostSocks::Verifier
- Defined in:
- lib/lost-socks.rb
Constant Summary collapse
- @@delay =
nil
Class Method Summary collapse
Instance Method Summary collapse
-
#has_authorative_nameserver_of(domain) ⇒ Object
or it.answers_to ??.
-
#initialize(domain) {|_self| ... } ⇒ Verifier
constructor
A new instance of Verifier.
- #is_aliased_to(domain) ⇒ Object
- #maps_mail_to(domain, args = {}) ⇒ Object
- #resolves_to(ip) ⇒ Object
- #with_server(server) {|_self| ... } ⇒ Object
Constructor Details
#initialize(domain) {|_self| ... } ⇒ Verifier
Returns a new instance of Verifier.
21 22 23 24 25 26 |
# File 'lib/lost-socks.rb', line 21 def initialize(domain) @server = nil @domain = domain yield self if block_given? self end |
Class Method Details
.delay=(seconds) ⇒ Object
17 18 19 |
# File 'lib/lost-socks.rb', line 17 def self.delay=(seconds) @@delay = seconds end |
Instance Method Details
#has_authorative_nameserver_of(domain) ⇒ Object
or it.answers_to ??
47 48 49 |
# File 'lib/lost-socks.rb', line 47 def (domain) check! 'NS', domain end |
#is_aliased_to(domain) ⇒ Object
38 39 40 |
# File 'lib/lost-socks.rb', line 38 def is_aliased_to(domain) check! 'CNAME', domain end |
#maps_mail_to(domain, args = {}) ⇒ Object
42 43 44 |
# File 'lib/lost-socks.rb', line 42 def maps_mail_to(domain, args = {}) check! 'MX', domain, args end |
#resolves_to(ip) ⇒ Object
34 35 36 |
# File 'lib/lost-socks.rb', line 34 def resolves_to(ip) check! 'A', ip end |
#with_server(server) {|_self| ... } ⇒ Object
28 29 30 31 32 |
# File 'lib/lost-socks.rb', line 28 def with_server(server) @server = server yield self if block_given? self end |