# File lib/dnsruby/resource/NXT.rb, line 46 def from_string(string) next_domain, *type_names = string.split # type names are all but first types = NxtTypes::names_to_codes(type_names) from_hash(next_domain: next_domain, types: types) end