Class: Zonesync::Parser::SSHFP
Instance Attribute Summary collapse
-
#alg ⇒ Object
Returns the value of attribute alg.
-
#fp ⇒ Object
Returns the value of attribute fp.
-
#fptype ⇒ Object
Returns the value of attribute fptype.
Attributes inherited from Record
#comment, #host, #klass, #rdata, #ttl
Instance Method Summary collapse
-
#initialize(vars, zonefile_record) ⇒ SSHFP
constructor
A new instance of SSHFP.
Methods inherited from Record
Constructor Details
#initialize(vars, zonefile_record) ⇒ SSHFP
Returns a new instance of SSHFP.
301 302 303 304 305 306 307 308 309 310 311 312 313 |
# File 'lib/zonesync/parser.rb', line 301 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.alg = zonefile_record.alg.to_i self.fptype = zonefile_record.fptype.to_i self.fp = zonefile_record.fp.to_s self.comment = zonefile_record.comment&.to_s end end |
Instance Attribute Details
#alg ⇒ Object
Returns the value of attribute alg.
299 300 301 |
# File 'lib/zonesync/parser.rb', line 299 def alg @alg end |
#fp ⇒ Object
Returns the value of attribute fp.
299 300 301 |
# File 'lib/zonesync/parser.rb', line 299 def fp @fp end |
#fptype ⇒ Object
Returns the value of attribute fptype.
299 300 301 |
# File 'lib/zonesync/parser.rb', line 299 def fptype @fptype end |