Class: Zonesync::Zonefile::SSHFP
- Defined in:
- lib/zonesync/zonefile.rb
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.
284 285 286 287 288 289 290 291 292 293 294 295 296 |
# File 'lib/zonesync/zonefile.rb', line 284 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.
282 283 284 |
# File 'lib/zonesync/zonefile.rb', line 282 def alg @alg end |
#fp ⇒ Object
Returns the value of attribute fp.
282 283 284 |
# File 'lib/zonesync/zonefile.rb', line 282 def fp @fp end |
#fptype ⇒ Object
Returns the value of attribute fptype.
282 283 284 |
# File 'lib/zonesync/zonefile.rb', line 282 def fptype @fptype end |
#host ⇒ Object
Returns the value of attribute host.
282 283 284 |
# File 'lib/zonesync/zonefile.rb', line 282 def host @host end |