Class: Zonesync::Parser::PTR
Instance Attribute Summary collapse
-
#domainname ⇒ Object
(also: #target, #rdata)
Returns the value of attribute domainname.
Attributes inherited from Record
Instance Method Summary collapse
-
#initialize(vars, zonefile_record) ⇒ PTR
constructor
A new instance of PTR.
Methods inherited from Record
Constructor Details
#initialize(vars, zonefile_record) ⇒ PTR
261 262 263 264 265 266 267 268 269 270 271 |
# File 'lib/zonesync/parser.rb', line 261 def initialize(vars, zonefile_record) @vars = vars if zonefile_record self.host = qualify_host(zonefile_record.host.to_s) @vars[:last_host] = host self.ttl = zonefile_record.ttl.to_i self.klass = zonefile_record.klass.to_s self.domainname = qualify_host(zonefile_record.target.to_s) self.comment = zonefile_record.comment&.to_s end end |
Instance Attribute Details
#domainname ⇒ Object Also known as: target, rdata
Returns the value of attribute domainname.
259 260 261 |
# File 'lib/zonesync/parser.rb', line 259 def domainname @domainname end |