Parent

Class Index [+]

Quicksearch

Dnsruby::RR::SSHFP

Constants

TypeValue

Attributes

alg[RW]
fptype[RW]
fp[RW]

Public Instance Methods

from_hash(hash) click to toggle source
    # File lib/Dnsruby/resource/SSHFP.rb, line 43
43:       def from_hash(hash)
44:         if hash[:alg]
45:           @alg = Algorithms.new(hash[:alg])
46:         end
47:         if hash[:fptype]
48:           @fptype = FpTypes.new(hash[:fptype])
49:         end
50:         if hash[:fp]
51:           @fp = hash[:fp]
52:         end
53:       end
from_string(input) click to toggle source
    # File lib/Dnsruby/resource/SSHFP.rb, line 55
55:       def from_string(input)
56:         if (input.length > 0)
57:           names = input.split(" ")
58:           begin
59:             @alg = Algorithms.new(names[0].to_i)
60:           rescue ArgumentError
61:             @alg = Algorithms.new(names[0])
62:           end
63:           begin
64:             @fptype = FpTypes.new(names[1].to_i)
65:           rescue ArgumentError
66:             @fptype = FpTypes.new(names[1])
67:           end
68:           @fp = [names[2]].pack("H*")
69:         end
70:       end
rdata_to_string() click to toggle source
    # File lib/Dnsruby/resource/SSHFP.rb, line 72
72:       def rdata_to_string
73:         ret = "#{@alg.code} #{@fptype.code} "
74:         ret += @fp.unpack("H*")[0]
75:         return ret
76:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.