Class: DNS::Zonefile::SOA
Instance Attribute Summary collapse
-
#expiry_time ⇒ Object
Returns the value of attribute expiry_time.
-
#nameserver ⇒ Object
Returns the value of attribute nameserver.
-
#nxttl ⇒ Object
Returns the value of attribute nxttl.
-
#origin ⇒ Object
Returns the value of attribute origin.
-
#refresh_time ⇒ Object
Returns the value of attribute refresh_time.
-
#responsible_party ⇒ Object
Returns the value of attribute responsible_party.
-
#retry_time ⇒ Object
Returns the value of attribute retry_time.
-
#serial ⇒ Object
Returns the value of attribute serial.
Attributes inherited from Record
Instance Method Summary collapse
-
#initialize(vars, zonefile_soa = nil) ⇒ SOA
constructor
A new instance of SOA.
Methods inherited from Record
inheriting_writer_for_at, writer_for_at, writer_for_ttl
Constructor Details
#initialize(vars, zonefile_soa = nil) ⇒ SOA
Returns a new instance of SOA.
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 |
# File 'lib/dns/zonefile.rb', line 127 def initialize(vars, zonefile_soa=nil) @vars = vars if zonefile_soa self.origin = zonefile_soa.origin.to_s @vars[:last_host] = self.origin self.ttl = zonefile_soa.ttl.to_i self.klass = zonefile_soa.klass.to_s self.nameserver = zonefile_soa.ns.to_s self.responsible_party = zonefile_soa.rp.to_s self.serial = zonefile_soa.serial.to_i self.refresh_time = zonefile_soa.refresh.to_i self.retry_time = zonefile_soa.reretry.to_i self.expiry_time = zonefile_soa.expiry.to_i self.nxttl = zonefile_soa.nxttl.to_i end end |
Instance Attribute Details
#expiry_time ⇒ Object
Returns the value of attribute expiry_time.
123 124 125 |
# File 'lib/dns/zonefile.rb', line 123 def expiry_time @expiry_time end |
#nameserver ⇒ Object
Returns the value of attribute nameserver.
123 124 125 |
# File 'lib/dns/zonefile.rb', line 123 def nameserver @nameserver end |
#nxttl ⇒ Object
Returns the value of attribute nxttl.
123 124 125 |
# File 'lib/dns/zonefile.rb', line 123 def nxttl @nxttl end |
#origin ⇒ Object
Returns the value of attribute origin.
123 124 125 |
# File 'lib/dns/zonefile.rb', line 123 def origin @origin end |
#refresh_time ⇒ Object
Returns the value of attribute refresh_time.
123 124 125 |
# File 'lib/dns/zonefile.rb', line 123 def refresh_time @refresh_time end |
#responsible_party ⇒ Object
Returns the value of attribute responsible_party.
123 124 125 |
# File 'lib/dns/zonefile.rb', line 123 def responsible_party @responsible_party end |
#retry_time ⇒ Object
Returns the value of attribute retry_time.
123 124 125 |
# File 'lib/dns/zonefile.rb', line 123 def retry_time @retry_time end |
#serial ⇒ Object
Returns the value of attribute serial.
123 124 125 |
# File 'lib/dns/zonefile.rb', line 123 def serial @serial end |