Class: DNS::Zonefile::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.
-
#host ⇒ Object
Returns the value of attribute host.
Attributes inherited from Record
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.
275 276 277 278 279 280 281 282 283 284 285 286 |
# File 'lib/dns/zonefile.rb', line 275 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 end end |
Instance Attribute Details
#alg ⇒ Object
Returns the value of attribute alg.
273 274 275 |
# File 'lib/dns/zonefile.rb', line 273 def alg @alg end |
#fp ⇒ Object
Returns the value of attribute fp.
273 274 275 |
# File 'lib/dns/zonefile.rb', line 273 def fp @fp end |
#fptype ⇒ Object
Returns the value of attribute fptype.
273 274 275 |
# File 'lib/dns/zonefile.rb', line 273 def fptype @fptype end |
#host ⇒ Object
Returns the value of attribute host.
273 274 275 |
# File 'lib/dns/zonefile.rb', line 273 def host @host end |