Class: LostSocks::Verifier

Inherits:
Object
  • Object
show all
Defined in:
lib/lost-socks.rb

Constant Summary collapse

@@delay =
nil

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(domain) {|_self| ... } ⇒ Verifier

Returns a new instance of Verifier.

Yields:

  • (_self)

Yield Parameters:



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 has_authorative_nameserver_of(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

Yields:

  • (_self)

Yield Parameters:



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