Class: DnsChecker::Nameserver
- Inherits:
-
Object
- Object
- DnsChecker::Nameserver
- Defined in:
- lib/dns_checker/nameserver.rb
Instance Attribute Summary collapse
-
#a_records ⇒ Object
readonly
Returns the value of attribute a_records.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#ttl ⇒ Object
readonly
Returns the value of attribute ttl.
Instance Method Summary collapse
-
#initialize(name:, ttl: nil) ⇒ Nameserver
constructor
A new instance of Nameserver.
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_records ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/dns_checker/nameserver.rb', line 9 def name @name end |
#ttl ⇒ Object (readonly)
Returns the value of attribute ttl.
10 11 12 |
# File 'lib/dns_checker/nameserver.rb', line 10 def ttl @ttl end |