# File lib/Dnsruby/resource/SSHFP.rb, line 43 def from_hash(hash) if hash[:alg] @alg = Algorithms.new(hash[:alg]) end if hash[:fptype] @fptype = FpTypes.new(hash[:fptype]) end if hash[:fp] @fp = hash[:fp] end end