Class: DnsChecker::Nameserver

Inherits:
Object
  • Object
show all
Defined in:
lib/dns_checker/nameserver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, ttl: nil) ⇒ Nameserver

Returns a new instance of Nameserver.



12
13
14
15
16
# File 'lib/dns_checker/nameserver.rb', line 12

def initialize(name:, ttl: nil)
  @name = name
  @ttl = ttl
  update_a_records
end

Instance Attribute Details

#a_recordsObject (readonly)

Returns the value of attribute a_records.



8
9
10
# File 'lib/dns_checker/nameserver.rb', line 8

def a_records
  @a_records
end

#nameObject (readonly)

Returns the value of attribute name.



9
10
11
# File 'lib/dns_checker/nameserver.rb', line 9

def name
  @name
end

#ttlObject (readonly)

Returns the value of attribute ttl.



10
11
12
# File 'lib/dns_checker/nameserver.rb', line 10

def ttl
  @ttl
end