Class: DNS::Zonefile::SSHFP

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

Instance Attribute Summary collapse

Attributes inherited from Record

#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.



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

#algObject

Returns the value of attribute alg.



273
274
275
# File 'lib/dns/zonefile.rb', line 273

def alg
  @alg
end

#fpObject

Returns the value of attribute fp.



273
274
275
# File 'lib/dns/zonefile.rb', line 273

def fp
  @fp
end

#fptypeObject

Returns the value of attribute fptype.



273
274
275
# File 'lib/dns/zonefile.rb', line 273

def fptype
  @fptype
end

#hostObject

Returns the value of attribute host.



273
274
275
# File 'lib/dns/zonefile.rb', line 273

def host
  @host
end