Class: Zonesync::Zonefile::SSHFP

Inherits:
Record
  • Object
show all
Defined in:
lib/zonesync/zonefile.rb

Instance Attribute Summary collapse

Attributes inherited from Record

#comment, #klass, #ttl

Instance Method Summary collapse

Methods inherited from Record

writer_for_ttl

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

#algObject

Returns the value of attribute alg.



282
283
284
# File 'lib/zonesync/zonefile.rb', line 282

def alg
  @alg
end

#fpObject

Returns the value of attribute fp.



282
283
284
# File 'lib/zonesync/zonefile.rb', line 282

def fp
  @fp
end

#fptypeObject

Returns the value of attribute fptype.



282
283
284
# File 'lib/zonesync/zonefile.rb', line 282

def fptype
  @fptype
end

#hostObject

Returns the value of attribute host.



282
283
284
# File 'lib/zonesync/zonefile.rb', line 282

def host
  @host
end