# File lib/Dnsruby/resource/HIP.rb, line 84 def from_string(input) @rsvs=[] if (input.length > 0) split = input.split(" ") @pk_algorithm = split[0].to_i @hit = hit_from_string(split[1]) @hit_length = @hit.length @public_key = public_key_from_string(split[2]) @pk_length = @public_key.length # Now load in any RSVs there may be count = 3 while (split[count]) @rsvs.push(Name.create(split[count])) count += 1 end end end